Fix label width

This commit is contained in:
luk3yx 2022-11-08 22:17:38 +13:00
parent 633f239b09
commit 304214c2ae
1 changed files with 1 additions and 0 deletions

View File

@ -271,6 +271,7 @@ local item_picker = flow.make_gui(function(player, ctx)
gui.HBox{
gui.ItemImage{w = 1, h = 1, item_name = ctx.item},
gui.Label{
w = 1, -- Don't auto-detect the label width
label = ctx.desc and ctx.item ~= "" and
S("Selected item: @1", ctx.desc) or
S("No item selected")