fix text overflow

This commit is contained in:
lucy 2026-05-16 22:36:37 +02:00
commit adf04efc96
2 changed files with 5 additions and 2 deletions

View file

@ -13,9 +13,8 @@ ClippingWrapperRectangle {
leftMargin: 8
rightMargin: 8
child: RowLayout {
WrapperRectangle {
Layout.fillHeight: true
Layout.maximumWidth: 400
color: 'transparent'
clip: true
StyledText {

View file

@ -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
}
}
}