fix(slint): genre popup grew to full window height

The popup root Rectangle set width but no height, so as a direct
child of the home overlay it defaulted to the parent's full height —
the panel ballooned vertically. Bind height to the content layout's
preferred-height so it hugs its content.

cc
This commit is contained in:
vicrodh committed 2026-05-20 23:35:26 -06:00
1 parent b4c99e1d88
commit 21a909185f
1 file changed
+5 -2
@@ -160,6 +160,10 @@ export component GenreFilterPopup inherits Rectangle {
property <length> chip-height: 38px;
width: 470px;
// Hug the content vertically — without an explicit height a
// Rectangle child fills its parent (the whole view), which made
// the popup grow to full window height.
height: content.preferred-height;
background: Theme.surface-main;
border-radius: Radius.md;
border-width: 1px;
@@ -168,8 +172,7 @@ export component GenreFilterPopup inherits Rectangle {
drop-shadow-color: #00000080;
drop-shadow-offset-y: 8px;
// Height hugs the content.
VerticalLayout {
content := VerticalLayout {
padding: 16px;
spacing: 14px;