Pin the settings key to the label column width

A row with no label hides PART_Label, collapsing the column onto the key, so the
explanations went ragged again on every checkbox row.
This commit is contained in:
maj00r
2026-09-04 23:32:16 +02:00
parent 4047e39456
commit 4840740f31

View File

@@ -57,6 +57,10 @@
key under the label, the explanation under the control.
Laying them out as one run instead made every
explanation start wherever its key happened to end. -->
<!-- Pinned to the same width as the label above it. A row
with no label hides PART_Label, and without this the
column would collapse onto the key and every
explanation would start at a different place again. -->
<SelectableTextBlock Name="PART_ConfigKey"
Grid.Row="1" Grid.Column="0"
Text="{TemplateBinding ConfigKey}"
@@ -64,6 +68,7 @@
FontSize="11"
Foreground="{StaticResource CarbonFgDim}"
TextWrapping="Wrap"
MinWidth="286" MaxWidth="286"
Margin="0,3,14,0" />
<TextBlock Name="PART_Description"
@@ -234,6 +239,10 @@
<Setter Property="MinWidth" Value="26" />
<Setter Property="Margin" Value="6,0,0,0" />
</Style>
<Style Selector="ctl|SettingRow.Compact /template/ SelectableTextBlock#PART_ConfigKey">
<Setter Property="MinWidth" Value="0" />
<Setter Property="MaxWidth" Value="Infinity" />
</Style>
<Style Selector="ctl|SettingRow.Compact /template/ TextBlock#PART_Description">
<Setter Property="Margin" Value="0,2,0,0" />
</Style>