Reduce needed width to show room times

Also remove excess spacing between the title and time
This commit is contained in:
miruka 2019-09-06 14:04:18 -04:00
parent 5eaa877554
commit f5cbbd0a44
2 changed files with 3 additions and 2 deletions

View File

@ -40,6 +40,7 @@ HButton {
HRowLayout {
id: additionalInfo
visible: visibleChildren.length > 0
}
HLabel {
@ -48,7 +49,7 @@ HButton {
visible: Layout.maximumWidth > 0
Layout.maximumWidth:
text && tile.width >= 200 ? implicitWidth : 0
text && tile.width >= 160 ? implicitWidth : 0
Behavior on Layout.maximumWidth { HNumberAnimation {} }
}

View File

@ -44,7 +44,7 @@ HTileDelegate {
svgName: "invite-received"
colorize: theme.colors.alertBackground
visible: Layout.maximumWidth > 0
visible: invited
Layout.maximumWidth: invited ? implicitWidth : 0
Behavior on Layout.maximumWidth { HNumberAnimation {} }