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