fix text overflow
This commit is contained in:
parent
d919056a03
commit
adf04efc96
2 changed files with 5 additions and 2 deletions
|
|
@ -13,9 +13,8 @@ ClippingWrapperRectangle {
|
|||
leftMargin: 8
|
||||
rightMargin: 8
|
||||
child: RowLayout {
|
||||
|
||||
WrapperRectangle {
|
||||
Layout.fillHeight: true
|
||||
Layout.maximumWidth: 400
|
||||
color: 'transparent'
|
||||
clip: true
|
||||
StyledText {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue