toast: limit size and enable word wrap

This commit is contained in:
galister
2025-12-13 21:59:32 +09:00
parent ff4b39069c
commit 661ad7d761
2 changed files with 11 additions and 4 deletions

View File

@@ -3,12 +3,12 @@
<elements>
<div interactable="0" >
<rectangle padding="4" box_sizing="content_box" flex_wrap="wrap" flex_direction="row" gap="4" color="#000000c0" border_color="~color_accent" border="2" round="8" justify_content="space_between">
<rectangle max_width="500" max_height="400" padding="4" box_sizing="content_box" flex_wrap="wrap" flex_direction="row" gap="4" color="#000000c0" border_color="~color_accent" border="2" round="8" justify_content="space_between">
<div width="100%" padding="4">
<label text="toast title" id="toast_title" weight="bold" />
</div>
<div width="100%" height="100%" padding="4" flex_wrap="wrap">
<label text="toast body goes here" id="toast_body" />
<label text="toast body goes here" id="toast_body" wrap="1" />
</div>
</rectangle>
</div>