Skip to content

Commit f23dd62

Browse files
authoredApr 25, 2018
Fix description wrapping in browse online content
1 parent 454f80a commit f23dd62

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed
 

‎builtin/mainmenu/dlg_contentstore.lua

+4-8
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function package_dialog.get_formspec()
119119
local formspec = {
120120
"size[8,4;true]",
121121
"label[2.5,0.2;", core.formspec_escape(package.title), "]",
122-
"label[0,1;", core.formspec_escape(package.short_description), "]",
122+
"textarea[0.2,1;8,3;;;", core.formspec_escape(package.short_description), "]",
123123
"button[0,0;2,1;back;", fgettext("Back"), "]",
124124
"button[6,0;2,1;install;", fgettext("Install"), "]",
125125
}
@@ -290,18 +290,14 @@ function store.get_formspec()
290290
formspec[#formspec + 1] = "]"
291291

292292
-- title
293-
formspec[#formspec + 1] = "label[1,0;"
293+
formspec[#formspec + 1] = "label[1,-0.1;"
294294
formspec[#formspec + 1] = core.formspec_escape(package.title ..
295295
" by " .. package.author)
296296
formspec[#formspec + 1] = "]"
297297

298298
-- description
299-
local short = package.short_description
300-
if #short > 60 then
301-
short = short:sub(1, 59) .. ""
302-
end
303-
formspec[#formspec + 1] = "label[1,0.3;"
304-
formspec[#formspec + 1] = core.formspec_escape(short)
299+
formspec[#formspec + 1] = "textarea[1.25,0.3;5,1;;;"
300+
formspec[#formspec + 1] = core.formspec_escape(package.short_description)
305301
formspec[#formspec + 1] = "]"
306302

307303
-- buttons

0 commit comments

Comments
 (0)
Please sign in to comment.