all talks: right-align time

This commit is contained in:
Franzi 2023-09-29 15:30:40 +02:00
parent 9e2c26e5d9
commit bc4ee0ef2b

View file

@ -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)