From 9412ac740ab950d973e7795637afbb771d02a3df Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 20 Jul 2020 15:50:45 +0200 Subject: [PATCH] Polish --- init.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 36b7793..61ae56d 100644 --- a/init.lua +++ b/init.lua @@ -1163,7 +1163,7 @@ local function get_title_fs(query_item, lang_code, favs, fs, spacing) local t_desc = query_item t_desc = #t_desc > 40 and fmt("%s...", sub(t_desc, 1, 37)) or t_desc - fs[#fs + 1] = fmt("hypertext[9.05,%f;5.85,1.2;item_title;%s]", + fs[#fs + 1] = fmt("hypertext[9.05,%f;5.85,1.2;;%s]", spacing - 0.1, fmt("" .. "%s\n", @@ -1332,7 +1332,10 @@ local function make_fs(data) lbl = ES"Collect items to reveal more recipes" end - fs[#fs + 1] = fmt(FMT.button, -0.25, 3, 8.3, 1, "no_item", lbl) + fs[#fs + 1] = fmt("hypertext[%f,%f;%f,%f;;%s]", + 0.05, 3, 8.29, 1, + fmt("
]", + translate(data.lang_code, lbl))) end local first_item = (data.pagenum - 1) * IPP