fix(ui): unclip Edit/Preview buttons; enlarge section labels and use mono field labels

This commit is contained in:
mika kuns
2026-05-30 17:02:35 +02:00
parent df7337810e
commit e86464e802
2 changed files with 8 additions and 11 deletions

View File

@@ -863,8 +863,8 @@
<!-- ============================================================ --> <!-- ============================================================ -->
<Style Selector="TextBlock.section-label"> <Style Selector="TextBlock.section-label">
<Setter Property="FontFamily" Value="{StaticResource MonoFont}" /> <Setter Property="FontFamily" Value="{StaticResource MonoFont}" />
<Setter Property="FontSize" Value="{StaticResource FontSizeEyebrow}" /> <Setter Property="FontSize" Value="{StaticResource FontSizeMono}" />
<Setter Property="Foreground" Value="{StaticResource TextFaintBrush}" /> <Setter Property="Foreground" Value="{StaticResource TextMuteBrush}" />
<Setter Property="LetterSpacing" Value="1.4" /> <Setter Property="LetterSpacing" Value="1.4" />
</Style> </Style>
<Style Selector="TextBlock.section-label.overdue"> <Style Selector="TextBlock.section-label.overdue">
@@ -902,6 +902,7 @@
<!-- SHARED MODAL STYLES (promoted from per-modal Window.Styles) --> <!-- SHARED MODAL STYLES (promoted from per-modal Window.Styles) -->
<!-- ============================================================ --> <!-- ============================================================ -->
<Style Selector="TextBlock.field-label"> <Style Selector="TextBlock.field-label">
<Setter Property="FontFamily" Value="{StaticResource MonoFont}" />
<Setter Property="FontSize" Value="{StaticResource FontSizeMono}" /> <Setter Property="FontSize" Value="{StaticResource FontSizeMono}" />
<Setter Property="Foreground" Value="{StaticResource TextDimBrush}" /> <Setter Property="Foreground" Value="{StaticResource TextDimBrush}" />
<Setter Property="Margin" Value="0,0,0,4" /> <Setter Property="Margin" Value="0,0,0,4" />

View File

@@ -135,9 +135,7 @@
<StackPanel Spacing="8"> <StackPanel Spacing="8">
<TextBlock Classes="section-label" Text="MERGE" Margin="0,0,0,2"/> <TextBlock Classes="section-label" Text="MERGE" Margin="0,0,0,2"/>
<StackPanel Spacing="4"> <StackPanel Spacing="4">
<TextBlock Text="Merge target" <TextBlock Classes="field-label" Text="Merge target"/>
FontSize="{StaticResource FontSizeMono}"
Foreground="{DynamicResource TextFaintBrush}"/>
<ComboBox ItemsSource="{Binding MergeTargetBranches}" <ComboBox ItemsSource="{Binding MergeTargetBranches}"
SelectedItem="{Binding SelectedMergeTarget, Mode=TwoWay}" SelectedItem="{Binding SelectedMergeTarget, Mode=TwoWay}"
HorizontalAlignment="Stretch"/> HorizontalAlignment="Stretch"/>
@@ -239,19 +237,17 @@
<PathIcon Data="{StaticResource Icon.Copy}" Width="11" Height="11"/> <PathIcon Data="{StaticResource Icon.Copy}" Width="11" Height="11"/>
</Button> </Button>
<Button Grid.Column="3" <Button Grid.Column="3"
Classes="icon-btn" Classes="btn"
Command="{Binding ToggleEditDescriptionCommand}" Command="{Binding ToggleEditDescriptionCommand}"
Padding="6,2" Padding="8,3"
FontSize="{StaticResource FontSizeEyebrow}"
ToolTip.Tip="Toggle edit/preview" ToolTip.Tip="Toggle edit/preview"
IsVisible="{Binding IsDescriptionEditorVisible}"> IsVisible="{Binding IsDescriptionEditorVisible}">
<TextBlock Text="Preview"/> <TextBlock Text="Preview"/>
</Button> </Button>
<Button Grid.Column="3" <Button Grid.Column="3"
Classes="icon-btn" Classes="btn"
Command="{Binding ToggleEditDescriptionCommand}" Command="{Binding ToggleEditDescriptionCommand}"
Padding="6,2" Padding="8,3"
FontSize="{StaticResource FontSizeEyebrow}"
ToolTip.Tip="Toggle edit/preview" ToolTip.Tip="Toggle edit/preview"
IsVisible="{Binding IsDescriptionPreviewVisible}"> IsVisible="{Binding IsDescriptionPreviewVisible}">
<TextBlock Text="Edit"/> <TextBlock Text="Edit"/>