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
|
leftMargin: 8
|
||||||
rightMargin: 8
|
rightMargin: 8
|
||||||
child: RowLayout {
|
child: RowLayout {
|
||||||
|
|
||||||
WrapperRectangle {
|
WrapperRectangle {
|
||||||
Layout.fillHeight: true
|
Layout.maximumWidth: 400
|
||||||
color: 'transparent'
|
color: 'transparent'
|
||||||
clip: true
|
clip: true
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ WrapperRectangle {
|
||||||
let current = Mpris.players.values[i];
|
let current = Mpris.players.values[i];
|
||||||
if (current.identity == 'spotify' || 'Spotify') {
|
if (current.identity == 'spotify' || 'Spotify') {
|
||||||
return current;
|
return current;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
@ -37,7 +39,9 @@ WrapperRectangle {
|
||||||
text: "music_note_2"
|
text: "music_note_2"
|
||||||
}
|
}
|
||||||
StyledText {
|
StyledText {
|
||||||
|
Layout.maximumWidth: 400
|
||||||
text: root.spotify?.trackTitle + " - " + root.spotify?.trackArtists
|
text: root.spotify?.trackTitle + " - " + root.spotify?.trackArtists
|
||||||
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue