mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-07 11:30:05 +00:00
Animate the removal of chat items when editing prompts. (#3227)
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
@@ -793,7 +793,7 @@ Rectangle {
|
|||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
visible: ModelList.selectableModels.count !== 0 && chatModel.count !== 0
|
visible: ModelList.selectableModels.count !== 0
|
||||||
ListView {
|
ListView {
|
||||||
id: listView
|
id: listView
|
||||||
Layout.maximumWidth: 1280
|
Layout.maximumWidth: 1280
|
||||||
@@ -825,6 +825,10 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
remove: Transition {
|
||||||
|
OpacityAnimator { to: 0; duration: 500 }
|
||||||
|
}
|
||||||
|
|
||||||
function scrollToEnd() {
|
function scrollToEnd() {
|
||||||
listView.positionViewAtEnd()
|
listView.positionViewAtEnd()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user