From 938fabe27d55d554f29775137494fa4e55055b57 Mon Sep 17 00:00:00 2001 From: deepfriedret Date: Mon, 14 Sep 2026 09:22:52 -0400 Subject: [PATCH] fix(media widget): prevent title from truncating with scroll song title on (#3436) (cherry picked from commit 01339629369f703aa8bd4d296f0375abb7c566a1) --- quickshell/Widgets/ScrollingText.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickshell/Widgets/ScrollingText.qml b/quickshell/Widgets/ScrollingText.qml index cd367b297..302ec2c4b 100644 --- a/quickshell/Widgets/ScrollingText.qml +++ b/quickshell/Widgets/ScrollingText.qml @@ -68,8 +68,8 @@ Item { anchors.verticalCenter: parent.verticalCenter wrapMode: Text.NoWrap - width: root.needsScrolling ? implicitWidth : root.width - elide: root.needsScrolling ? Text.ElideNone : Text.ElideRight + width: Math.min(implicitWidth, root.width) + elide: SettingsData.scrollTitleEnabled ? Text.ElideNone : Text.ElideRight x: Math.round((root.needsScrolling ? -Math.min(root.scrollOffset, root.maxScrollOffset) : 0) + root.textShift) opacity: 1