Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(status): simplify layout (#1299)
Mark the wrappable label hexpand, and use xalign to align the text to the left -- this is just like what spoiler_label_rev already does. This now hits the fast path introduced in https://gitlab.gnome.org/GNOME/gtk/-/commit/4150f2d3d255b90d4c28bb08d186153a97a3d3fb, avoiding measuring the label width-for-height. The header_button ("%s boosted", "in reply to %s") already has halign set to start. Also give it valign of center. This should not change anything about the resulting layout at all, since the label is always allocated exactly its natural height (same as minimum height), but since https://gitlab.gnome.org/GNOME/gtk/-/commit/16911e183ca12c441bc6bbbb650f63e25f02016e GTK will in this case horizontally align for the overall natural width rather than for the natural width for allocated height; thus we avoid measuring the label width-for-height. But note that this is not in any way a guarantee, we just exploit a specific aspect of GTK behavior here. Signed-off-by: Sergey Bugaev <[email protected]>
- Loading branch information