From adf04efc96697fbd60b67c6d657ef2cb087d59ba Mon Sep 17 00:00:00 2001 From: lucy Date: Sat, 16 May 2026 22:36:37 +0200 Subject: [PATCH] fix text overflow --- modules/bar/ActiveWindow.qml | 3 +-- modules/bar/Mpris.qml | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/bar/ActiveWindow.qml b/modules/bar/ActiveWindow.qml index 29b409a..35d474b 100644 --- a/modules/bar/ActiveWindow.qml +++ b/modules/bar/ActiveWindow.qml @@ -13,9 +13,8 @@ ClippingWrapperRectangle { leftMargin: 8 rightMargin: 8 child: RowLayout { - WrapperRectangle { - Layout.fillHeight: true + Layout.maximumWidth: 400 color: 'transparent' clip: true StyledText { diff --git a/modules/bar/Mpris.qml b/modules/bar/Mpris.qml index cedb9d5..5e9a9ef 100644 --- a/modules/bar/Mpris.qml +++ b/modules/bar/Mpris.qml @@ -19,6 +19,8 @@ WrapperRectangle { let current = Mpris.players.values[i]; if (current.identity == 'spotify' || 'Spotify') { return current; + } else { + return null; } } return null; @@ -37,7 +39,9 @@ WrapperRectangle { text: "music_note_2" } StyledText { + Layout.maximumWidth: 400 text: root.spotify?.trackTitle + " - " + root.spotify?.trackArtists + elide: Text.ElideRight } } }