From 593707baa48278f2e1f1e5e1de3d0248faf69522 Mon Sep 17 00:00:00 2001 From: Sighthesia Date: Tue, 21 Oct 2025 12:24:55 +0800 Subject: [PATCH] MediaMini: prevent initial width jump to maxWidth when widget appears --- Modules/Bar/Widgets/MediaMini.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/Bar/Widgets/MediaMini.qml b/Modules/Bar/Widgets/MediaMini.qml index 840ac754..7979f025 100644 --- a/Modules/Bar/Widgets/MediaMini.qml +++ b/Modules/Bar/Widgets/MediaMini.qml @@ -120,7 +120,8 @@ Item { } // Otherwise, adapt to content if (!hasActivePlayer) { - return maxWidth + // Keep compact when no active player + return calculateContentWidth() } // Use content width but don't exceed user-set maximum width return Math.min(calculateContentWidth(), maxWidth)