forked from Shinonome/dots-hyprland
sidebar: add loading indicator for ai
This commit is contained in:
@@ -265,8 +265,23 @@ Rectangle {
|
||||
|
||||
ColumnLayout { // Message content
|
||||
id: messageContentColumnLayout
|
||||
|
||||
spacing: 0
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
implicitHeight: loadingIndicatorLoader.implicitHeight
|
||||
implicitWidth: loadingIndicatorLoader.implicitWidth
|
||||
visible: loadingIndicatorLoader.visible
|
||||
FadeLoader {
|
||||
id: loadingIndicatorLoader
|
||||
anchors.centerIn: parent
|
||||
shown: (root.messageBlocks.length < 1) && (!root.messageData.done)
|
||||
sourceComponent: MaterialLoadingIndicator {
|
||||
loading: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Repeater {
|
||||
model: ScriptModel {
|
||||
values: Array.from({ length: root.messageBlocks.length }, (msg, i) => {
|
||||
|
||||
Reference in New Issue
Block a user