Fix EventImageTextBubble shown when no text

This commit is contained in:
miruka 2019-11-30 15:03:07 -04:00
parent c5a8be9ef9
commit df0020e62c

View File

@ -2,7 +2,7 @@ import QtQuick 2.12
import "../../Base"
HLabel {
visible: Boolean(text)
id: bubble
anchors.margins: theme.spacing / 4
topPadding: theme.spacing / 2
@ -16,4 +16,11 @@ HLabel {
color: Qt.hsla(0, 0, 0, 0.7)
radius: theme.radius
}
Binding {
target: bubble
property: "visible"
value: false
when: ! Boolean(bubble.text)
}
}