1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-06 11:02:41 +03:00

Use slimmer scrollbars

The previous scrollbars were too chunky and encroached too much on a view's content.

The new ones are slim and right-aligned so they encroach into dead space between views
which is much better
This commit is contained in:
Jesse Duffield
2024-01-30 08:42:10 +11:00
parent 9d840088ac
commit f9e8428061
24 changed files with 1098 additions and 587 deletions

View File

@@ -23,11 +23,6 @@ func calcScrollbarHeight(listSize int, pageSize int, scrollAreaSize int) int {
if pageSize >= listSize {
return scrollAreaSize
}
height := int((float64(pageSize) / float64(listSize)) * float64(scrollAreaSize))
minHeight := 2
if height < minHeight {
return minHeight
}
return height
return int((float64(pageSize) / float64(listSize)) * float64(scrollAreaSize))
}