Skip to content

Commit

Permalink
fix some options not showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
olebeck committed Sep 27, 2023
1 parent a3c5ee8 commit 783e5b5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ui/gui/pages/settings/settingsPage.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,7 @@ func (s *settingsPage) Layout(gtx layout.Context, th *material.Theme) layout.Dim
}
}

rows, cols := len(widgets)/3, 3
if len(widgets) == 4 {
rows, cols = 2, 2
}

rows, cols := max(1, len(widgets)/4), min(len(widgets), 4)
return s.grid.Layout(gtx, rows, cols, func(axis layout.Axis, index, constraint int) int {
switch axis {
case layout.Horizontal:
Expand Down

0 comments on commit 783e5b5

Please sign in to comment.