From 122b774c859dfb71e46fe8a2ab39820f109276f1 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Fri, 12 Mar 2021 23:52:11 +0100 Subject: [PATCH] Minor tweak --- init.lua | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/init.lua b/init.lua index 78a43c1..6a30908 100644 --- a/init.lua +++ b/init.lua @@ -1790,17 +1790,16 @@ local function get_award_list(data, fs, ctn_len, yextra, award_list, awards_unlo local y = yextra - 0.7 + i + (i * 0.3) local def, progress = award.def, award.progress - local title = def.title - local desc = def.description - - local title_lim, _title = 27 - local desc_lim, _desc = 40 - local icon_size = 1.1 - local box_len = ctn_len - icon_size + 0.1 + local title, desc = def.title, def.description title = translate(data.lang_code, title) desc = translate(data.lang_code, desc):gsub("%.$", "") + local title_lim, _title = 27 + local desc_lim, _desc = 39 + local icon_size = 1.1 + local box_len = ctn_len - icon_size + 0.1 + if #title > title_lim then _title = snip(title, title_lim) end