room-history: Increase message line height

Unfortuntely line height on multi-height labels is way too tight by default in GTK4, so we need to work around it in apps.
One very visible instance of this is the message bodies in the timeline.

I fixed issue by adding css line-height property on .room-history row css class.

https://gitlab.gnome.org/GNOME/fractal/-/issues/1030

Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1141>
This commit is contained in:
Harshil Patel 2022-08-29 20:22:17 +05:30
parent 1bf078c585
commit 546dae1e4f
2 changed files with 5 additions and 0 deletions

View file

@ -9,6 +9,10 @@ textview, text {
font-weight: bold;
}
.line-height {
line-height: 150%;
}
button.pill.large {
padding: 12px 40px;
}

View file

@ -96,6 +96,7 @@ mod imp {
label.set_wrap_mode(pango::WrapMode::WordChar);
label.set_xalign(0.0);
label.set_valign(gtk::Align::Start);
label.add_css_class("line-height");
label.connect_notify_local(
Some("label"),
clone!(@weak obj => move |_, _| {