Skip to content

Commit d0fe053

Browse files
committed
ux: limit the max width of base ref name
Signed-off-by: leo <[email protected]>
1 parent 5f26c81 commit d0fe053

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Views/CompareCommandPalette.axaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
Margin="4,0,0,0" Padding="4,0">
4343
<StackPanel Orientation="Horizontal">
4444
<TextBlock Text="{DynamicResource Text.Compare.Base}" Foreground="White" FontWeight="Bold"/>
45-
<ContentControl Content="{Binding BasedOn}" Margin="4,0,0,0">
45+
<ContentControl Content="{Binding BasedOn}" Margin="4,0,0,0" MaxWidth="100">
4646
<ContentControl.DataTemplates>
4747
<DataTemplate DataType="m:Branch">
48-
<TextBlock Text="{Binding FriendlyName}" Foreground="White"/>
48+
<TextBlock Text="{Binding FriendlyName}" Foreground="White" TextTrimming="CharacterEllipsis"/>
4949
</DataTemplate>
5050

5151
<DataTemplate DataType="m:Tag">
52-
<TextBlock Text="{Binding Name}" Foreground="White"/>
52+
<TextBlock Text="{Binding Name}" Foreground="White" TextTrimming="CharacterEllipsis"/>
5353
</DataTemplate>
5454
</ContentControl.DataTemplates>
5555
</ContentControl>

0 commit comments

Comments
 (0)