mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-12-22 08:12:44 +00:00
all talks: right-align time
This commit is contained in:
parent
9e2c26e5d9
commit
bc4ee0ef2b
1 changed files with 2 additions and 1 deletions
3
tile.lua
3
tile.lua
|
@ -272,7 +272,8 @@ local function view_all_talks(starts, ends, config, x1, y1, x2, y2)
|
|||
else
|
||||
talk_time = string.format("%d min ago", math.ceil(-delta/60))
|
||||
end
|
||||
text(col1, y, talk_time, time_size, rgba(default_color, 1))
|
||||
local time_width = font:width(talk_time, time_size)
|
||||
text(col2 - 35 - time_width, y, talk_time, time_size, rgba(default_color, 1))
|
||||
|
||||
if show_track and talk.track then
|
||||
local r,g,b = helper.parse_rgb(talk.track.color)
|
||||
|
|
Loading…
Reference in a new issue