Skip to content

Commit 403c8f4

Browse files
committed
ux: use WrapPanel instead of StackPanel (#1681)
Signed-off-by: leo <[email protected]>
1 parent c91554a commit 403c8f4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/Views/CheckoutCommit.axaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
Classes="bold"
1313
Text="{DynamicResource Text.Checkout.Commit}" />
1414

15-
<Grid Margin="0,16,0,0" RowDefinitions="32,Auto,Auto,Auto" ColumnDefinitions="Auto,*">
15+
<Grid Margin="0,16,0,0" ColumnDefinitions="Auto,*">
16+
<Grid.RowDefinitions>
17+
<RowDefinition Height="32"/>
18+
<RowDefinition Height="Auto" MinHeight="32"/>
19+
<RowDefinition Height="Auto"/>
20+
<RowDefinition Height="Auto"/>
21+
</Grid.RowDefinitions>
22+
1623
<TextBlock Grid.Row="0" Grid.Column="0"
1724
HorizontalAlignment="Right" VerticalAlignment="Center"
1825
Margin="0,0,8,0"
@@ -27,14 +34,14 @@
2734
HorizontalAlignment="Right" VerticalAlignment="Center"
2835
Margin="0,0,8,0"
2936
Text="{DynamicResource Text.Checkout.LocalChanges}"/>
30-
<StackPanel Grid.Row="1" Grid.Column="1" Height="32" Orientation="Horizontal">
37+
<WrapPanel Grid.Row="1" Grid.Column="1" Height="32" Orientation="Horizontal" VerticalAlignment="Center">
3138
<RadioButton Content="{DynamicResource Text.Checkout.LocalChanges.StashAndReply}"
3239
GroupName="LocalChanges"
3340
Margin="0,0,8,0"
3441
IsChecked="{Binding !DiscardLocalChanges, Mode=TwoWay}"/>
3542
<RadioButton Content="{DynamicResource Text.Checkout.LocalChanges.Discard}"
3643
GroupName="LocalChanges"/>
37-
</StackPanel>
44+
</WrapPanel>
3845

3946
<CheckBox Grid.Row="2" Grid.Column="1"
4047
Height="32"

0 commit comments

Comments
 (0)