ux: avoid bounds of item in branch tree change

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2026-03-23 13:59:33 +08:00
parent 3021ede9ab
commit 9c15cc92e1

View File

@@ -127,12 +127,16 @@
<!-- Content Area (allows double-clicking) -->
<Grid Grid.Column="1"
Height="24"
Background="Transparent"
ColumnDefinitions="18,*,Auto,Auto"
ColumnDefinitions="18,*,Auto,Auto,Auto"
DoubleTapped="OnDoubleTappedBranchNode">
<!-- Icon -->
<v:BranchTreeNodeIcon Grid.Column="0" IsExpanded="{Binding IsExpanded}"/>
<v:BranchTreeNodeIcon Grid.Column="0"
Width="18" Height="18"
VerticalAlignment="Center"
IsExpanded="{Binding IsExpanded}"/>
<!-- Name -->
<TextBlock Grid.Column="1"
@@ -152,7 +156,7 @@
</Border>
<!-- Tracking status -->
<v:BranchTreeNodeTrackStatusPresenter Grid.Column="2"
<v:BranchTreeNodeTrackStatusPresenter Grid.Column="3"
VerticalAlignment="Center"
FontFamily="{DynamicResource Fonts.Monospace}"
FontSize="10"
@@ -160,8 +164,9 @@
Background="{DynamicResource Brush.Badge}"/>
<!-- Filter Mode Switcher -->
<v:FilterModeSwitchButton Grid.Column="3"
Margin="0,0,8,0"
<v:FilterModeSwitchButton Grid.Column="4"
Width="12"
Margin="4,0,8,0"
Mode="{Binding FilterMode}"/>
</Grid>
</Grid>