Skip to content

Commit 31e31bf

Browse files
committed
fix offset of toolbar button
so it's consistent on large and small windows
1 parent 20d201a commit 31e31bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gui/mass-remove.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,12 @@ function MassRemoveToolbarOverlay:init()
469469
end
470470

471471
function MassRemoveToolbarOverlay:preUpdateLayout(parent_rect)
472-
self.frame.w = (parent_rect.width+1)//2 - 16
472+
local w = parent_rect.width
473+
if w <= 130 then
474+
self.frame.w = 50
475+
else
476+
self.frame.w = (parent_rect.width+1)//2 - 15
477+
end
473478
end
474479

475480
function MassRemoveToolbarOverlay:onInput(keys)

0 commit comments

Comments
 (0)