From a909ed498fe038947409463bf2eae0fad1dd98b6 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 16 Nov 2024 10:53:31 -0500 Subject: [PATCH] Hide the category list in the emoji picker when there is none This is easy to test if you have no stickers. It should no longer have a weird empty space above the placeholder message. --- src/chatbar/EmojiPicker.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chatbar/EmojiPicker.qml b/src/chatbar/EmojiPicker.qml index fdd437c60..7e4adab29 100644 --- a/src/chatbar/EmojiPicker.qml +++ b/src/chatbar/EmojiPicker.qml @@ -66,6 +66,7 @@ ColumnLayout { Layout.fillWidth: true Layout.preferredHeight: root.categoryIconSize + QQC2.ScrollBar.horizontal.height QQC2.ScrollBar.horizontal.height: QQC2.ScrollBar.horizontal.visible ? QQC2.ScrollBar.horizontal.implicitHeight : 0 + visible: categories.count !== 0 ListView { id: categories