floss.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
For people who care about, support, and build Free, Libre, and Open Source Software (FLOSS).

Administered by:

Server stats:

685
active users

Sergey Bugaev

Oh my freaking god, Tuba on my branch… just works now? With no warnings or criticals, and no broken layout?

This is a port to Adw.WrapBox (kindly made by @GeopJr), with fixes to Adw.WrapBox and further reworking of Gtk.Box (and Gtk.Window).

And now I hacked up Pango to:
1. finally do per-layout limits on the number of lines (instead of per-paragraph, which makes no sense),
2. do a better job ellipsizing the last line even when the line itself fits, but there are further lines that don't (due the the height limit or line number limit) — this still needs more polish, but it works somewhat,
3. and to finally have a proper way to disable wrapping, PANGO_WRAP_NONE (wanna guess how Gtk.Label.set_wrap (false) was working until now?)

@bugaevc is it clear that ellipsis comes from the app and is not just the end of the post?

@charlag not really, but this is not a new issue, the same happens when you ellipsize content in other ways. Have you seen any other platforms tackle this somehow?

@charlag I guess in the specific case of Tuba, it could do something akin to what Tusky does — see whether the text layout ended up being ellipsized (Pango.Layout.is_ellipsized ()) and if so, show en explicit "expand this" button.

@bugaevc yeah I can't say I love what we do in Tusky. I think a special icon could work to indicate that there's more content

@bugaevc @GeopJr Damn, what is your font rendering config?

@yotamN @GeopJr uhh, just the Fedora/GNOME default, I haven't changed anything. Why, is anything unusual about it?