diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-04-26 00:19:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-26 00:19:05 +0100 |
commit | f23dd62e2f66bfd1a502720d8f86d04ce5db14e0 (patch) | |
tree | 8ff0c70fe44b15c7906899bd6e235e8e12ee722f /builtin/mainmenu | |
parent | 454f80a0f78b99cf0b595d91e4ad7d847cfbbcc4 (diff) | |
download | minetest-f23dd62e2f66bfd1a502720d8f86d04ce5db14e0.tar.gz minetest-f23dd62e2f66bfd1a502720d8f86d04ce5db14e0.tar.bz2 minetest-f23dd62e2f66bfd1a502720d8f86d04ce5db14e0.zip |
Fix description wrapping in browse online content
Diffstat (limited to 'builtin/mainmenu')
-rw-r--r-- | builtin/mainmenu/dlg_contentstore.lua | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua index 2e9b90cf4..e3505456e 100644 --- a/builtin/mainmenu/dlg_contentstore.lua +++ b/builtin/mainmenu/dlg_contentstore.lua @@ -119,7 +119,7 @@ function package_dialog.get_formspec() local formspec = { "size[8,4;true]", "label[2.5,0.2;", core.formspec_escape(package.title), "]", - "label[0,1;", core.formspec_escape(package.short_description), "]", + "textarea[0.2,1;8,3;;;", core.formspec_escape(package.short_description), "]", "button[0,0;2,1;back;", fgettext("Back"), "]", "button[6,0;2,1;install;", fgettext("Install"), "]", } @@ -290,18 +290,14 @@ function store.get_formspec() formspec[#formspec + 1] = "]" -- title - formspec[#formspec + 1] = "label[1,0;" + formspec[#formspec + 1] = "label[1,-0.1;" formspec[#formspec + 1] = core.formspec_escape(package.title .. " by " .. package.author) formspec[#formspec + 1] = "]" -- description - local short = package.short_description - if #short > 60 then - short = short:sub(1, 59) .. "…" - end - formspec[#formspec + 1] = "label[1,0.3;" - formspec[#formspec + 1] = core.formspec_escape(short) + formspec[#formspec + 1] = "textarea[1.25,0.3;5,1;;;" + formspec[#formspec + 1] = core.formspec_escape(package.short_description) formspec[#formspec + 1] = "]" -- buttons |