Skip to content

Commit cbee179

Browse files
committed
ux: commit graph clip width
Signed-off-by: leo <[email protected]>
1 parent ada767d commit cbee179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Views/Histories.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private void OnCommitListLoaded(object sender, RoutedEventArgs e)
141141
var dataGrid = CommitListContainer;
142142
var rowsPresenter = dataGrid.FindDescendantOfType<DataGridRowsPresenter>();
143143
if (rowsPresenter is { Children: { Count: > 0 } rows })
144-
CommitGraph.Layout = new(0, dataGrid.Columns[0].ActualWidth, rows[0].Bounds.Height);
144+
CommitGraph.Layout = new(0, dataGrid.Columns[0].ActualWidth - 4, rows[0].Bounds.Height);
145145

146146
if (dataGrid.SelectedItems.Count == 1)
147147
dataGrid.ScrollIntoView(dataGrid.SelectedItem, null);
@@ -176,7 +176,7 @@ private void OnCommitListLayoutUpdated(object _1, EventArgs _2)
176176
}
177177
}
178178

179-
var clipWidth = dataGrid.Columns[0].ActualWidth;
179+
var clipWidth = dataGrid.Columns[0].ActualWidth - 4;
180180
if (_lastGraphStartY != startY ||
181181
_lastGraphClipWidth != clipWidth ||
182182
_lastGraphRowHeight != rowHeight)

0 commit comments

Comments
 (0)