From a3c41cbd8d96972036b2f5125698f6e0486c9052 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 2 Aug 2020 02:53:24 +0200 Subject: [PATCH] Design tweaks --- init.lua | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/init.lua b/init.lua index 0130e2f..02e0110 100644 --- a/init.lua +++ b/init.lua @@ -1240,13 +1240,12 @@ local function get_panels(lang_code, query_item, recipes, usages, show_usages, -0.2 + spacing, panel.height, PNG.bg_full, 10) if recipe_or_usage and not rn then - local X = XOFFSET - 0.7 - local Y = YOFFSET - 0.4 + spacing + local lbl = is_recipe and ES"No recipes" or ES"No usages" - fs[#fs + 1] = fmt(FMT.image, X, Y, 2, 2, PNG.nothing) - - fs[#fs + 1] = fmt(FMT.tooltip, - X, Y, 2, 2, is_recipe and ES"No recipes" or ES"No usages") + fs[#fs + 1] = fmt(FMT.hypertext, + 8.29, YOFFSET + spacing + 0.3, 6.8, 1, + fmt("
", + translate(lang_code, lbl))) elseif panel.name == "title" then get_title_fs(query_item, lang_code, favs, fs, spacing) @@ -1341,7 +1340,7 @@ local function make_fs(data) fs[#fs + 1] = fmt(FMT.hypertext, 0.05, 3, 8.29, 1, - fmt("
]", + fmt("
", translate(data.lang_code, lbl))) end