From 6d4ea87e7f9a25b6b81adc49b2279fd7d6e0bcd5 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 4 Jan 2025 18:26:09 +0100 Subject: [PATCH] Fixed the chat scrolling behavior after toggling the workspaces --- .../Components/ChatComponent.razor.cs | 14 +++++++------- .../wwwroot/changelog/v0.9.25.md | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/MindWork AI Studio/Components/ChatComponent.razor.cs b/app/MindWork AI Studio/Components/ChatComponent.razor.cs index e2159d24..35d71f5b 100644 --- a/app/MindWork AI Studio/Components/ChatComponent.razor.cs +++ b/app/MindWork AI Studio/Components/ChatComponent.razor.cs @@ -106,13 +106,13 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable await WorkspaceBehaviour.EnsureBiasWorkspace(); } } - - if (this.SettingsManager.ConfigurationData.Chat.ShowLatestMessageAfterLoading) - { - this.mustScrollToBottomAfterRender = true; - this.scrollRenderCountdown = 2; - this.StateHasChanged(); - } + } + + if (this.SettingsManager.ConfigurationData.Chat.ShowLatestMessageAfterLoading) + { + this.mustScrollToBottomAfterRender = true; + this.scrollRenderCountdown = 4; + this.StateHasChanged(); } var deferredLoading = MessageBus.INSTANCE.CheckDeferredMessages(Event.LOAD_CHAT).FirstOrDefault(); diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.25.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.25.md index e67c29e7..189d6131 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.25.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.25.md @@ -1,4 +1,5 @@ # v0.9.25, build 200 (2025-01-xx xx:xx UTC) - Added xAI as a new provider. xAI provides their Grok models for generating content. - Improved the stop generation button behavior to ensure that the AI stops generating content immediately (which will save compute time, energy and financial resources). +- Fixed the chat scrolling behavior after toggling the workspaces. - Restructured the streaming network code to be centralized out of the individual providers. This will allow for easier maintenance and updates in the future. \ No newline at end of file