Skip to content

Commit 5dcca10

Browse files
authored
feat: scale down card grid to match Details window footprint (#10)
* feat: scale down card grid to match Details window footprint * chore: bump version to 1.4.0
1 parent d830e6e commit 5dcca10

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

CooldownTracker.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Title: Healer Cooldown Tracker
33
## Notes: Manually track healer cooldowns for raid leaders. Click to start a timer when a healer calls out on comms.
44
## Author: Reube
5-
## Version: 1.3.0
5+
## Version: 1.4.0
66
## SavedVariables: CooldownTrackerDB
77

88
Data.lua

UI.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ local AddonName, CT = ...
1313
-- ---------------------------------------------------------------------------
1414
-- Layout constants
1515
-- ---------------------------------------------------------------------------
16-
local TITLE_HEIGHT = 24
17-
local BOTTOM_PAD = 8
16+
local TITLE_HEIGHT = 20
17+
local BOTTOM_PAD = 4
1818
local ROW_PADDING = 6
1919

2020
-- Wide-row mode (columns = 1)
2121
local WIDE_ROW_H = 36
2222
local WIDE_W = 300
2323
local ICON_SIZE = 28
2424
-- Card mode (columns ≥ 2)
25-
local CARD_W = 72
26-
local CARD_H = 68
27-
local CARD_PAD = 4
28-
local CARD_ICON = 48
25+
local CARD_W = 56
26+
local CARD_H = 52
27+
local CARD_PAD = 3
28+
local CARD_ICON = 40
2929

3030
-- ---------------------------------------------------------------------------
3131
-- Local helpers
@@ -108,11 +108,11 @@ local function ApplyCardLayout(row, cW, cH)
108108

109109
row.iconTex:ClearAllPoints()
110110
row.iconTex:SetSize(CARD_ICON, CARD_ICON)
111-
row.iconTex:SetPoint("CENTER", row, "CENTER", 0, 8)
111+
row.iconTex:SetPoint("CENTER", row, "CENTER", 0, 5)
112112

113113
row.timerLabel:ClearAllPoints()
114-
row.timerLabel:SetFont("Fonts\\FRIZQT__.TTF", 12, "THICKOUTLINE")
115-
row.timerLabel:SetPoint("BOTTOM", row, "BOTTOM", 0, 4)
114+
row.timerLabel:SetFont("Fonts\\FRIZQT__.TTF", 11, "THICKOUTLINE")
115+
row.timerLabel:SetPoint("BOTTOM", row, "BOTTOM", 0, 3)
116116

117117
row.bar:Hide()
118118
row.barFill:Hide()

0 commit comments

Comments
 (0)