Reduce required width to show last seen times
This commit is contained in:
parent
8e629ade66
commit
8d5d0ff7fb
@ -6,17 +6,18 @@ import ".."
|
|||||||
|
|
||||||
HLabel {
|
HLabel {
|
||||||
property HTile tile
|
property HTile tile
|
||||||
|
property int hideUnderWidth: 200
|
||||||
|
|
||||||
|
|
||||||
font.pixelSize: theme.fontSize.small
|
font.pixelSize: theme.fontSize.small
|
||||||
verticalAlignment: Qt.AlignVCenter
|
verticalAlignment: Qt.AlignVCenter
|
||||||
color: theme.colors.halfDimText
|
color: theme.colors.halfDimText
|
||||||
visible: Layout.maximumWidth > 0
|
|
||||||
opacity: Layout.maximumWidth > 0 ? 1 : 0
|
opacity: Layout.maximumWidth > 0 ? 1 : 0
|
||||||
|
visible: opacity > 0
|
||||||
|
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.maximumWidth:
|
Layout.maximumWidth:
|
||||||
text && tile.width >= 200 * theme.uiScale ?
|
text && tile.width >= hideUnderWidth * theme.uiScale ?
|
||||||
implicitWidth : 0
|
implicitWidth : 0
|
||||||
|
|
||||||
Behavior on Layout.maximumWidth { HNumberAnimation {} }
|
Behavior on Layout.maximumWidth { HNumberAnimation {} }
|
||||||
|
@ -48,6 +48,7 @@ HTile {
|
|||||||
id: lastActiveAt
|
id: lastActiveAt
|
||||||
tile: member
|
tile: member
|
||||||
visible: presenceTimer.running
|
visible: presenceTimer.running
|
||||||
|
hideUnderWidth: 120
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user