proper text entry box
This commit is contained in:
2
iris
2
iris
Submodule iris updated: 172e7157be...5785352ac0
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user