diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-12-13 22:07:59 -0500 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2021-12-15 19:10:01 -0500 |
commit | 4a7e6d3f48ed2f39beae64a306ee6d8688b8c08b (patch) | |
tree | 73662ff13d1bf1cc628dec5aa71208777e0c5320 /resources/qml/RoomList.qml | |
parent | Make notification count bubbles expand some more (diff) | |
download | nheko-4a7e6d3f48ed2f39beae64a306ee6d8688b8c08b.tar.xz |
Fix a few things
Diffstat (limited to 'resources/qml/RoomList.qml')
-rw-r--r-- | resources/qml/RoomList.qml | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index d972f8cd..d40ff2b3 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -31,7 +31,7 @@ Page { anchors.right: parent.right height: parent.height model: Rooms - reuseItems: false + reuseItems: true ScrollHelper { flickable: parent @@ -139,7 +139,7 @@ Page { height: avatarSize + 2 * Nheko.paddingMedium width: ListView.view.width state: "normal" - ToolTip.visible: hovered && collapsed && !collapsedBubbleHover.hovered && !notificationBubbleHover.hovered + ToolTip.visible: hovered && collapsed ToolTip.text: roomName onClicked: { console.log("tapped " + roomId); @@ -239,8 +239,6 @@ Page { width: Math.min(Math.max(collapsedBubbleText.width + Nheko.paddingMedium, height), parent.width) radius: height / 2 color: hasLoudNotification ? Nheko.theme.red : roomItem.bubbleBackground - ToolTip.text: notificationCount - ToolTip.visible: collapsedBubbleHover.hovered && (notificationCount > 9999) Label { id: collapsedBubbleText @@ -255,10 +253,6 @@ Page { text: notificationCount > 9999 ? "9999+" : notificationCount } - HoverHandler { - id: collapsedBubbleHover - } - } } @@ -345,12 +339,6 @@ Page { color: hasLoudNotification ? "white" : roomItem.bubbleText text: notificationCount > 9999 ? "9999+" : notificationCount - onTextChanged: { - let old = parent.width - parent.width = Math.max(probableWidth + Nheko.paddingMedium, parent.height) - console.log(old + " changed to " + parent.width) - } - HoverHandler { id: notificationBubbleHover } |