From 2b1668eff2b9ece97a1edd4095af988385403fa9 Mon Sep 17 00:00:00 2001 From: AT Date: Fri, 6 Dec 2024 12:26:22 -0500 Subject: [PATCH] Animate the removal of chat items when editing prompts. (#3227) Signed-off-by: Adam Treat --- gpt4all-chat/qml/ChatView.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gpt4all-chat/qml/ChatView.qml b/gpt4all-chat/qml/ChatView.qml index b8a5b27b..e3b820de 100644 --- a/gpt4all-chat/qml/ChatView.qml +++ b/gpt4all-chat/qml/ChatView.qml @@ -793,7 +793,7 @@ Rectangle { ColumnLayout { anchors.fill: parent - visible: ModelList.selectableModels.count !== 0 && chatModel.count !== 0 + visible: ModelList.selectableModels.count !== 0 ListView { id: listView Layout.maximumWidth: 1280 @@ -825,6 +825,10 @@ Rectangle { } } + remove: Transition { + OpacityAnimator { to: 0; duration: 500 } + } + function scrollToEnd() { listView.positionViewAtEnd() }