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:
7
vendor/github.com/jesseduffield/gocui/scrollbar.go
generated
vendored
7
vendor/github.com/jesseduffield/gocui/scrollbar.go
generated
vendored
@@ -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))
|
||||
}
|
||||
|
Reference in New Issue
Block a user