From e9e693c0a50d5625610d97049cf3f9534f012126 Mon Sep 17 00:00:00 2001 From: ruinivist Date: Sun, 7 Jun 2026 00:36:55 +0000 Subject: [PATCH] fix(ui): keep artwork visible when widget grows --- package/contents/ui/Representation.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/contents/ui/Representation.qml b/package/contents/ui/Representation.qml index 9c36a4f..3171d0b 100644 --- a/package/contents/ui/Representation.qml +++ b/package/contents/ui/Representation.qml @@ -34,7 +34,10 @@ MouseArea { readonly property bool usesCustomBackground: configuredBackgroundStyle === "custom" readonly property int hideModeHorizontalPadding: 8 readonly property int contentInset: 8 - readonly property int labelRailSize: Math.max(0, height - contentInset * 2) + readonly property int availableContentWidth: Math.max(0, width - contentInset * 2) + readonly property int separatorReservedWidth: nowPlayingLabelsVisible && !hideNowPlayingArea ? 1 + effectiveSeparatorGapLabel + effectiveSeparatorGapTrack : 0 + readonly property int maxLabelRailSize: Math.max(0, availableContentWidth - separatorReservedWidth) + readonly property int labelRailSize: Math.max(0, Math.min(height - contentInset * 2, maxLabelRailSize)) readonly property bool mediaControlsTargetShown: mediaControlsEnabled && controlsHoverActive && nowPlayingLabelsVisible && !hideNowPlayingArea readonly property int artworkControlsGap: configuredUseLabelArtwork && player.artUrl.length > 0 ? 2 : 0 readonly property real labelShrunkScale: labelRailSize > 0 ? Math.max(0, (labelRailSize - buttonSize - artworkControlsGap) / labelRailSize) : 1