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

2
iris

Submodule iris updated: 172e7157be...5785352ac0

View File

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