Skip to content

Commit 278bbf7

Browse files
committed
Adjust default width to align content
1 parent 3877457 commit 278bbf7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/ColorPicker/ColorPicker.xaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<Style x:Key="DefaultColorPickerStyle"
2525
TargetType="controls:ColorPicker">
26-
<Setter Property="Width" Value="392" />
26+
<Setter Property="Width" Value="346" />
2727
<Setter Property="MinWidth" Value="312" />
2828
<Setter Property="MinHeight" Value="392" />
2929
<Setter Property="IsTabStop" Value="False" />
@@ -97,9 +97,11 @@
9797
<controls:Case Value="SpectrumListBoxItem">
9898
<Grid>
9999
<Grid.ColumnDefinitions>
100-
<ColumnDefinition Width="Auto" />
100+
<ColumnDefinition Width="Auto"
101+
MinWidth="32" />
101102
<ColumnDefinition Width="*" />
102-
<ColumnDefinition Width="Auto" />
103+
<ColumnDefinition Width="Auto"
104+
MinWidth="32" />
103105
</Grid.ColumnDefinitions>
104106
<Grid.RowDefinitions>
105107
<RowDefinition Height="Auto" />
@@ -1176,7 +1178,7 @@
11761178
<Setter Property="VerticalContentAlignment" Value="Stretch" />
11771179
<Setter Property="Margin" Value="8,0,8,0" />
11781180
<Setter Property="Padding" Value="24,0,24,0" />
1179-
<Setter Property="MinWidth" Value="108" />
1181+
<Setter Property="MinWidth" Value="100" />
11801182
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
11811183
<Setter Property="Template" Value="{StaticResource UnderlineListBoxItemTemplate}" />
11821184
</Style>

0 commit comments

Comments
 (0)