From db6f779b1a8781b659838e5fcf929f5d3215cb4f Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 29 Jul 2025 15:26:45 +0800 Subject: mpris: use real width instead of implicitwidth --- bar/Mpris.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bar') diff --git a/bar/Mpris.qml b/bar/Mpris.qml index 93872cb..eff5ab7 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -29,7 +29,7 @@ Item { return title.trim(); } - implicitWidth: activePlayer ? rect.implicitWidth - General.rectMargin / 1.2 : 0 + implicitWidth: activePlayer ? rect.width - General.rectMargin / 1.2 : 0 height: Bar.height + General.rectMargin / 1.5 opacity: activePlayer ? 1 : 0 @@ -167,7 +167,7 @@ Item { duration: General.animateDuration / 4 } } - Behavior on implicitWidth { + Behavior on width { ISpringAnimation { spring: General.springAnimationSpring * 2 damping: General.springAnimationDamping * 1.3 -- cgit v1.2.3