fix(slint): favorites sub-header (row 2) inflating on artists/playlists/labels

The per-view action+toolbar row is a HorizontalLayout whose sized children
are conditional per tab. When they are absent its auto vertical-stretch
becomes 1, so it split the leftover height with the scrolling content. The
Flickable-based tabs (artists/playlists/labels) have a small content
preferred height, leaving slack the row grabbed -> a giant empty sub-header.
Tracks/Albums looked fine only because their content fills. Pin the row to
vertical-stretch: 0 so the content always absorbs the slack.

cc
This commit is contained in:
vicrodh committed 2026-05-27 15:10:01 -06:00
1 parent bc95b30db3
commit da683cd5d0
1 file changed
+7
@@ -583,7 +583,14 @@ export component FavoritesView inherits Rectangle {
Rectangle { height: 12px; }
// Row 2 — per-view action buttons (left), toolbar (right).
// vertical-stretch: 0 is load-bearing: without it, when this row's
// sized children are absent (tabs whose toolbar is conditional) its
// auto stretch becomes 1 and it splits the leftover height with the
// scrolling content (which, for the Flickable-based tabs, has a small
// preferred height) — inflating the sub-header. Tracks/Albums looked
// fine only because their content fills, leaving no slack to grab.
HorizontalLayout {
vertical-stretch: 0;
padding-left: 32px;
padding-right: 32px;
spacing: 8px;