From f5cbbd0a4403c31e4f1c384d25e79be335563b22 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 6 Sep 2019 14:04:18 -0400 Subject: [PATCH] Reduce needed width to show room times Also remove excess spacing between the title and time --- src/qml/Base/HTileDelegate.qml | 3 ++- src/qml/SidePane/RoomDelegate.qml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qml/Base/HTileDelegate.qml b/src/qml/Base/HTileDelegate.qml index e2a6a7fd..53cb5c00 100644 --- a/src/qml/Base/HTileDelegate.qml +++ b/src/qml/Base/HTileDelegate.qml @@ -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 {} } } diff --git a/src/qml/SidePane/RoomDelegate.qml b/src/qml/SidePane/RoomDelegate.qml index 0b905fcb..4b32cf37 100644 --- a/src/qml/SidePane/RoomDelegate.qml +++ b/src/qml/SidePane/RoomDelegate.qml @@ -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 {} }