ux: limit the max width of base ref name

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2026-01-06 14:49:09 +08:00
parent 5f26c811f1
commit d0fe053ec2

View File

@@ -42,14 +42,14 @@
Margin="4,0,0,0" Padding="4,0">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{DynamicResource Text.Compare.Base}" Foreground="White" FontWeight="Bold"/>
<ContentControl Content="{Binding BasedOn}" Margin="4,0,0,0">
<ContentControl Content="{Binding BasedOn}" Margin="4,0,0,0" MaxWidth="100">
<ContentControl.DataTemplates>
<DataTemplate DataType="m:Branch">
<TextBlock Text="{Binding FriendlyName}" Foreground="White"/>
<TextBlock Text="{Binding FriendlyName}" Foreground="White" TextTrimming="CharacterEllipsis"/>
</DataTemplate>
<DataTemplate DataType="m:Tag">
<TextBlock Text="{Binding Name}" Foreground="White"/>
<TextBlock Text="{Binding Name}" Foreground="White" TextTrimming="CharacterEllipsis"/>
</DataTemplate>
</ContentControl.DataTemplates>
</ContentControl>