proper text entry box

This commit is contained in:
2025-11-21 02:45:11 -05:00
parent 6405c1bb3b
commit ce07c80782
2 changed files with 5 additions and 3 deletions

View File

@@ -154,7 +154,7 @@ pub fn msg_panel(client: &mut Client, network: NetSender) -> impl WidgetFn<Stack
.editable()
.size(20)
.wrap(true)
.text_align(Align::LEFT)
.text_align(Align::TOP_LEFT)
.add(ui);
(
@@ -177,9 +177,11 @@ pub fn msg_panel(client: &mut Client, network: NetSender) -> impl WidgetFn<Stack
})
.pad(15)
.on(CursorSense::click(), focus_other(send_text))
.scroll()
.masked()
.background(rect(Color::BLACK.brighter(0.05)).radius(15))
.pad(15)
.height(80)
.max_height(rel(0.5))
.z_offset(1),
)
.span(Dir::DOWN)