Skip to content

Commit 9c15cc9

Browse files
committed
ux: avoid bounds of item in branch tree change
Signed-off-by: leo <longshuang@msn.cn>
1 parent 3021ede commit 9c15cc9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/Views/BranchTree.axaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,16 @@
127127

128128
<!-- Content Area (allows double-clicking) -->
129129
<Grid Grid.Column="1"
130+
Height="24"
130131
Background="Transparent"
131-
ColumnDefinitions="18,*,Auto,Auto"
132+
ColumnDefinitions="18,*,Auto,Auto,Auto"
132133
DoubleTapped="OnDoubleTappedBranchNode">
133134

134135
<!-- Icon -->
135-
<v:BranchTreeNodeIcon Grid.Column="0" IsExpanded="{Binding IsExpanded}"/>
136+
<v:BranchTreeNodeIcon Grid.Column="0"
137+
Width="18" Height="18"
138+
VerticalAlignment="Center"
139+
IsExpanded="{Binding IsExpanded}"/>
136140

137141
<!-- Name -->
138142
<TextBlock Grid.Column="1"
@@ -152,16 +156,17 @@
152156
</Border>
153157

154158
<!-- Tracking status -->
155-
<v:BranchTreeNodeTrackStatusPresenter Grid.Column="2"
159+
<v:BranchTreeNodeTrackStatusPresenter Grid.Column="3"
156160
VerticalAlignment="Center"
157161
FontFamily="{DynamicResource Fonts.Monospace}"
158162
FontSize="10"
159163
Foreground="{DynamicResource Brush.BadgeFG}"
160164
Background="{DynamicResource Brush.Badge}"/>
161165

162166
<!-- Filter Mode Switcher -->
163-
<v:FilterModeSwitchButton Grid.Column="3"
164-
Margin="0,0,8,0"
167+
<v:FilterModeSwitchButton Grid.Column="4"
168+
Width="12"
169+
Margin="4,0,8,0"
165170
Mode="{Binding FilterMode}"/>
166171
</Grid>
167172
</Grid>

0 commit comments

Comments
 (0)