From 46c803c9ce403245f461206a41e28e7cf1f1a286 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 30 Oct 2025 18:13:27 +0100 Subject: [PATCH] sidebar: add loading indicator for ai --- .../ii/modules/sidebarLeft/aiChat/AiMessage.qml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/dots/.config/quickshell/ii/modules/sidebarLeft/aiChat/AiMessage.qml b/dots/.config/quickshell/ii/modules/sidebarLeft/aiChat/AiMessage.qml index 3cccb9d8f..d0269a88b 100644 --- a/dots/.config/quickshell/ii/modules/sidebarLeft/aiChat/AiMessage.qml +++ b/dots/.config/quickshell/ii/modules/sidebarLeft/aiChat/AiMessage.qml @@ -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) => {