notifications: fix eliding when collapsed

This commit is contained in:
end-4
2025-07-17 22:08:31 +07:00
parent 5865a62a94
commit cfeae73c91
@@ -175,13 +175,14 @@ Item { // Notification item area
StyledText { StyledText {
opacity: !root.expanded ? 1 : 0 opacity: !root.expanded ? 1 : 0
visible: opacity > 0 visible: opacity > 0
Layout.fillWidth: true
Behavior on opacity { Behavior on opacity {
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
} }
Layout.fillWidth: true
font.pixelSize: root.fontSize font.pixelSize: root.fontSize
color: Appearance.colors.colSubtext color: Appearance.colors.colSubtext
elide: Text.ElideRight elide: Text.ElideRight
wrapMode: Text.Wrap // Needed for proper eliding????
maximumLineCount: 1 maximumLineCount: 1
textFormat: Text.StyledText textFormat: Text.StyledText
text: { text: {