From ef6f0dd42174df3ca70680fe16a56eff4520cbea Mon Sep 17 00:00:00 2001 From: AT Date: Sun, 30 Jun 2024 19:26:53 -0400 Subject: [PATCH] Fix for reload button hovering and size of combobox if model with large name is selected. (#2493) Signed-off-by: Adam Treat --- gpt4all-chat/qml/ChatView.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gpt4all-chat/qml/ChatView.qml b/gpt4all-chat/qml/ChatView.qml index 8b423864..bcc9ccc5 100644 --- a/gpt4all-chat/qml/ChatView.qml +++ b/gpt4all-chat/qml/ChatView.qml @@ -298,9 +298,11 @@ Rectangle { id: contentRow anchors.centerIn: parent spacing: 0 + Layout.maximumWidth: 550 RowLayout { id: miniButtonsRow clip: true + Layout.maximumWidth: 550 Behavior on Layout.preferredWidth { NumberAnimation { duration: 300 @@ -309,7 +311,7 @@ Rectangle { } Layout.preferredWidth: { - if (!comboBox.hovered) + if (!(comboBox.hovered || reloadButton.hovered || ejectButton.hovered)) return 0 return (reloadButton.visible ? reloadButton.width : 0) + (ejectButton.visible ? ejectButton.width : 0) } @@ -350,6 +352,7 @@ Rectangle { } Text { + Layout.maximumWidth: 520 id: comboBoxText leftPadding: 10 rightPadding: 10