Animate the removal of chat items when editing prompts. (#3227)

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
AT 2024-12-06 12:26:22 -05:00 committed by GitHub
parent 6b18abb124
commit 2b1668eff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
}