ISO toggle: widen column 110->124, tighten padding so 'Enable' fits
Some checks failed
CI / build-and-test (push) Failing after 28s
Some checks failed
CI / build-and-test (push) Failing after 28s
After dropping IsoToggle from a full pill to a Radius.M rounded-rect, the 'Enable' label (and the active-state '* LIVE') started clipping at the right edge of the 110px cell. The pill geometry had visually masked the tight fit by softening the edges; the squared corners made it obvious. Widen the ISO column from 110 to 124 (+14px) and tighten the inline button padding from 14,6 to 10,6. The MinWidth=84 from the IsoToggle style still covers the OFF state; the column bump gives the active 'LIVE' state room to breathe without changing the overall row rhythm.
This commit is contained in:
parent
47914fcd77
commit
f47edfb2f6
1 changed files with 7 additions and 4 deletions
|
|
@ -654,14 +654,17 @@
|
||||||
</DataGridTemplateColumn.CellTemplate>
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
</DataGridTemplateColumn>
|
</DataGridTemplateColumn>
|
||||||
|
|
||||||
<!-- Col 5 — ISO toggle pill. LIVE = cyan-muted fill + cyan border + cyan text.
|
<!-- Col 5 — ISO toggle. LIVE = cyan-muted fill + cyan border + cyan text.
|
||||||
OFF = hollow neutral. Error states use the existing IsoToggle style. -->
|
OFF = hollow neutral. Error states use the existing IsoToggle style.
|
||||||
<DataGridTemplateColumn Header="ISO" Width="100">
|
Width 124 (was 100/110) so the "Enable" / "● LIVE" content has
|
||||||
|
breathing room inside the rounded-rect — 100 was clipping the label
|
||||||
|
at the right edge once the IsoToggle stopped being a full pill. -->
|
||||||
|
<DataGridTemplateColumn Header="ISO" Width="124">
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Button Command="{Binding ToggleIsoCommand}"
|
<Button Command="{Binding ToggleIsoCommand}"
|
||||||
Margin="0,0,12,0"
|
Margin="0,0,12,0"
|
||||||
Padding="14,6"
|
Padding="10,6"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
<Button.Style>
|
<Button.Style>
|
||||||
<Style TargetType="Button" BasedOn="{StaticResource Wd.Button.IsoToggle}">
|
<Style TargetType="Button" BasedOn="{StaticResource Wd.Button.IsoToggle}">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue