Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbith committed Jul 20, 2020
1 parent f2a5c42 commit 9412ac7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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("<item name=%s float=right width=64 height=64 rotate=yes>" ..
"<big><b>%s</b></big>\n<style color=#7bf font=mono>%s</style>",
Expand Down Expand Up @@ -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("<center><style size=20><b>%s</b></style></center>]",
translate(data.lang_code, lbl)))
end

local first_item = (data.pagenum - 1) * IPP
Expand Down

0 comments on commit 9412ac7

Please sign in to comment.