small ui stuff
This commit is contained in:
@@ -112,12 +112,15 @@ pub fn msg_widget(msg: Msg) -> impl WidgetLike<FnTag> {
|
||||
.text_align(Align::Left)
|
||||
.wrap(true)
|
||||
.id_on(CursorSense::click(), |i, c, d| focus(i.clone(), c, d));
|
||||
let header = text(msg.user).size(20);
|
||||
let header = text(msg.user).size(20).text_align(Align::Left);
|
||||
(
|
||||
image(include_bytes!("./assets/sungals.png"))
|
||||
.sized((70, 70))
|
||||
.align(Align::TopLeft),
|
||||
(header.align(Align::TopLeft), content.align(Align::TopLeft))
|
||||
(
|
||||
header.width(rest(1)).align(Align::Top),
|
||||
content.width(rest(1)).align(Align::Top),
|
||||
)
|
||||
.span(Dir::DOWN)
|
||||
.gap(10),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user