Skip to content

Commit d3bca20

Browse files
committed
ux: using Grid instead of StackPanel to layout convertional commit change type
1 parent 72b46a6 commit d3bca20

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Views/ConventionalCommitMessageBuilder.axaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
SelectedItem="{Binding Type, Mode=TwoWay}">
6060
<ComboBox.ItemTemplate>
6161
<DataTemplate x:DataType="{x:Type m:ConventionalCommitType}">
62-
<StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Center">
63-
<TextBlock Text="{Binding Type}"/>
64-
<TextBlock Margin="6,0,0,0" Text="{Binding Description}" Foreground="{DynamicResource Brush.FG2}"/>
65-
</StackPanel>
62+
<Grid Height="20" ColumnDefinitions="64,Auto" VerticalAlignment="Center">
63+
<TextBlock Grid.Column="0" Text="{Binding Type}"/>
64+
<TextBlock Grid.Column="1" Text="{Binding Description}" Foreground="{DynamicResource Brush.FG2}"/>
65+
</Grid>
6666
</DataTemplate>
6767
</ComboBox.ItemTemplate>
6868
</ComboBox>

0 commit comments

Comments
 (0)