Reduce required width to show last seen times

This commit is contained in:
miruka 2020-07-14 17:32:47 -04:00
parent 8e629ade66
commit 8d5d0ff7fb
2 changed files with 4 additions and 2 deletions

View File

@ -6,17 +6,18 @@ import ".."
HLabel {
property HTile tile
property int hideUnderWidth: 200
font.pixelSize: theme.fontSize.small
verticalAlignment: Qt.AlignVCenter
color: theme.colors.halfDimText
visible: Layout.maximumWidth > 0
opacity: Layout.maximumWidth > 0 ? 1 : 0
visible: opacity > 0
Layout.fillHeight: true
Layout.maximumWidth:
text && tile.width >= 200 * theme.uiScale ?
text && tile.width >= hideUnderWidth * theme.uiScale ?
implicitWidth : 0
Behavior on Layout.maximumWidth { HNumberAnimation {} }

View File

@ -48,6 +48,7 @@ HTile {
id: lastActiveAt
tile: member
visible: presenceTimer.running
hideUnderWidth: 120
}
}