Verified Commit cd750dec authored by Zander's avatar Zander 💥

Only add margin to the start of message rows

Allows text to flow right to the edge, important on smaller devices

Also avoids use of child properties which are going away soon
parent f9fb4455
Pipeline #73052 passed with stages
in 64 minutes and 33 seconds
......@@ -126,7 +126,9 @@ impl MessageBox {
// +--------+---------+
let msg_widget = gtk::Box::new(gtk::Orientation::Horizontal, 5);
let content = self.build_room_msg_content(msg, true);
msg_widget.pack_start(&content, true, true, 50);
content.set_margin_start(50);
msg_widget.pack_start(&content, true, true, 0);
msg_widget
}
......@@ -221,7 +223,7 @@ impl MessageBox {
w.set_justify(gtk::Justification::Left);
w.set_xalign(0.0);
w.set_valign(gtk::Align::Start);
w.set_halign(gtk::Align::Start);
w.set_halign(gtk::Align::Fill);
w.set_selectable(true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment