fix(slint): anchor the header right controls to the right edge

The right-controls HorizontalLayout had no explicit width, so a layout
left to fill its parent reported the full header width — the right
anchor `x` then resolved to a negative offset and the queue/lyrics/
hamburger buttons piled up over the Discover tab. Give the row an
explicit width so it anchors correctly.

cc
This commit is contained in:
vicrodh committed 2026-05-18 19:51:47 -06:00
1 parent b51ec1509e
commit e766bed21a
1 file changed
+3
@@ -198,9 +198,12 @@ export component HeaderBar inherits Rectangle {
}
// --- Right controls: queue, lyrics, hamburger (anchored right) ---------
// Explicit width (3 * 36 + 2 * 2 spacing) so the right anchor lands
// correctly — a layout left to its own devices fills the parent.
right-controls := HorizontalLayout {
x: root.width - self.width - Spacing.md;
y: (root.height - self.height) / 2;
width: 112px;
height: 36px;
spacing: 2px;
HeaderIconButton {