From ecc97ca2556e5f28a3af97f835c695b04dd27799 Mon Sep 17 00:00:00 2001 From: Sighthesia Date: Sun, 19 Oct 2025 15:38:20 +0800 Subject: [PATCH] MediaMini: handle empty media content with active player for rounded background --- Modules/Bar/Widgets/MediaMini.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/Bar/Widgets/MediaMini.qml b/Modules/Bar/Widgets/MediaMini.qml index 9831626e..bf7520a1 100644 --- a/Modules/Bar/Widgets/MediaMini.qml +++ b/Modules/Bar/Widgets/MediaMini.qml @@ -120,6 +120,10 @@ Item { if (!hasActivePlayer) { return maxWidth } + // If there's an active player but no contenct, use a minimum height for rounded background + if (hasActivePlayer && fullTitleMetrics.contentWidth === 0) { + return Style.capsuleHeight + Style.marginS + } // Use content width but don't exceed user-set maximum width return Math.min(calculateContentWidth(), maxWidth) }