aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/now.lua
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/now.lua')
-rw-r--r--widgets/now.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/widgets/now.lua b/widgets/now.lua
index 1b797ae..6273ed1 100644
--- a/widgets/now.lua
+++ b/widgets/now.lua
@@ -31,12 +31,15 @@ function M.draw(cr, rect, colors)
big = weather.deg(c.temp), rows = rows, share = 0.85,
})
- -- The condition in words, in the prose face, in what the rows left.
+ -- The condition in words, in the prose face, in what the rows left. It sits
+ -- on the card's foot: the type is capped to match the other cards, so a tall
+ -- cell leaves height over, and that gap belongs above the line, not below.
local size = S * 0.36
- if y + size * 1.4 <= inner.y + inner.h then
+ local foot = inner.y + inner.h - size * 0.25
+ if y + size * 1.4 <= foot then
card.font(cr, card.FONT_UI, size, false)
card.rgba(cr, colors.body)
- card.text(cr, inner.x, y + size * 1.4, weather.describe(c.code))
+ card.text(cr, inner.x, foot, weather.describe(c.code))
end
end