mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-08 04:15:00 +00:00
ux: move hunk-based operation button away from scrollbar (#1382)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
57004c4baf
commit
80df53cf04
1 changed files with 2 additions and 2 deletions
|
@ -1748,8 +1748,8 @@ namespace SourceGit.Views
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var top = chunk.Y + (chunk.Height >= 36 ? 16 : 4);
|
var top = chunk.Y + (chunk.Height >= 36 ? 8 : 2);
|
||||||
var right = (chunk.Combined || !chunk.IsOldSide) ? 16 : (v.Bounds.Width * 0.5f) + 16;
|
var right = (chunk.Combined || !chunk.IsOldSide) ? 26 : (v.Bounds.Width * 0.5f) + 26;
|
||||||
v.Popup.Margin = new Thickness(0, top, right, 0);
|
v.Popup.Margin = new Thickness(0, top, right, 0);
|
||||||
v.Popup.IsVisible = true;
|
v.Popup.IsVisible = true;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue