Skip to content

Commit a9d5d72

Browse files
TimMenu/Layout/Sector: added sector padding
1 parent 9a83654 commit a9d5d72

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

TimMenu/Layout/Sector.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,11 @@ local function _enqueueBorderDraw(win, sector_data, depth, persistentWidth, pers
9090
end
9191

9292
local function _finalizeCursorAndLayout(win, sector_data, width, height, pad)
93+
-- Add 50% more vertical spacing between sectors
94+
local sectorSpacing = math.ceil(Globals.Defaults.ITEM_SPACING * 1.5)
95+
9396
win.cursorX = sector_data.startX + width + pad
94-
win.cursorY = sector_data.startY
97+
win.cursorY = sector_data.startY + height + sectorSpacing
9598
win.lineHeight = math.max(win.lineHeight or 0, height)
9699

97100
if #win._sectorStack > 0 then

0 commit comments

Comments
 (0)