forked from Shinonome/dots-hyprland
fix multiline quote
This commit is contained in:
@@ -280,14 +280,17 @@ Item {
|
|||||||
anchors.top: parent.bottom
|
anchors.top: parent.bottom
|
||||||
anchors.topMargin: 24
|
anchors.topMargin: 24
|
||||||
|
|
||||||
implicitWidth: quoteText.width + quoteIcon.width + 12 // 12 for spacing on both sides
|
implicitWidth: quoteText.width + quoteIcon.width + 16 // 12 for spacing on both sides
|
||||||
implicitHeight: showQuote ? 30 : 0 // A better way to hide can be found
|
implicitHeight: showQuote ? quoteText.height + 8 : 0
|
||||||
radius: Appearance.rounding.small
|
radius: Appearance.rounding.small
|
||||||
color: Appearance.colors.colSecondaryContainer
|
color: Appearance.colors.colSecondaryContainer
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
animation: Appearance.animation.elementResize.numberAnimation.createObject(this)
|
animation: Appearance.animation.elementResize.numberAnimation.createObject(this)
|
||||||
}
|
}
|
||||||
|
Behavior on implicitWidth {
|
||||||
|
animation: Appearance.animation.elementResize.numberAnimation.createObject(this)
|
||||||
|
}
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user