single line textedit

This commit is contained in:
2025-11-22 22:04:57 -05:00
parent c1040f9789
commit e1d0a423de
3 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ pub fn login_screen(client: &mut Client) -> WidgetId {
let mut field = |name, hint_| {
text(name)
.editable()
.editable(true)
.size(20)
.hint(hint(hint_))
.add(ui)

View File

@@ -20,7 +20,7 @@ pub fn main_view(client: &mut Client, network: NetSender) -> WidgetId {
pub fn msg_widget(msg: Msg) -> impl WidgetLike<FnTag> {
let content = text(msg.content)
.editable()
.editable(false)
.size(SIZE)
.wrap(true)
.attr::<Selectable>(());
@@ -45,7 +45,7 @@ pub fn msg_panel(client: &mut Client, network: NetSender) -> impl WidgetFn<Sized
*channel = Some(msg_area.clone());
let send_text = text("")
.editable()
.editable(false)
.size(SIZE)
.wrap(true)
.hint(hint("send message"))