Skip to content

Commit

Permalink
Animate the removal of chat items when editing prompts. (nomic-ai#3227)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Treat <[email protected]>
  • Loading branch information
manyoso authored Dec 6, 2024
1 parent 6b18abb commit 2b1668e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gpt4all-chat/qml/ChatView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -825,6 +825,10 @@ Rectangle {
}
}

remove: Transition {
OpacityAnimator { to: 0; duration: 500 }
}

function scrollToEnd() {
listView.positionViewAtEnd()
}
Expand Down

0 comments on commit 2b1668e

Please sign in to comment.