From daf00cbe062e91540392afeb8f2b6d5ea2cff5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peer=20Sch=C3=BCtt?= <20603780+peerschuett@users.noreply.github.com> Date: Thu, 12 Mar 2026 13:43:05 +0100 Subject: [PATCH] It now looks and acts as expected --- .../Components/ChatComponent.razor | 64 +++++++++++-------- .../Components/ProfileSelection.razor | 4 +- app/MindWork AI Studio/wwwroot/app.js | 12 ++-- 3 files changed, 44 insertions(+), 36 deletions(-) diff --git a/app/MindWork AI Studio/Components/ChatComponent.razor b/app/MindWork AI Studio/Components/ChatComponent.razor index 5686f49c..828d97cb 100644 --- a/app/MindWork AI Studio/Components/ChatComponent.razor +++ b/app/MindWork AI Studio/Components/ChatComponent.razor @@ -54,23 +54,8 @@ Class="@this.UserInputClass" Style="@this.UserInputStyle"/> - - - - - - - - - - - - - - - - - + + @if ( this.SettingsManager.ConfigurationData.Workspace.StorageBehavior is not WorkspaceStorageBehavior.DISABLE_WORKSPACES && this.SettingsManager.ConfigurationData.Workspace.DisplayBehavior is WorkspaceDisplayBehavior.TOGGLE_OVERLAY) @@ -97,9 +82,9 @@ } + + - - @if (this.SettingsManager.ConfigurationData.Workspace.StorageBehavior is WorkspaceStorageBehavior.STORE_CHATS_AUTOMATICALLY) { @@ -114,7 +99,36 @@ } - + + + + + + + + + + + + + + + + + + + + + + + + + + @if (PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager)) + { + + } + @if (this.SettingsManager.ConfigurationData.LLMProviders.ShowProviderConfidence) { @@ -126,21 +140,15 @@ } - - - @if (PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager)) - { - - } - + @if (!this.ChatThread.IsLLMProviderAllowed(this.Provider)) { } - + diff --git a/app/MindWork AI Studio/Components/ProfileSelection.razor b/app/MindWork AI Studio/Components/ProfileSelection.razor index 02105589..36d2a35e 100644 --- a/app/MindWork AI Studio/Components/ProfileSelection.razor +++ b/app/MindWork AI Studio/Components/ProfileSelection.razor @@ -11,7 +11,7 @@ } else { - + } @@ -25,4 +25,4 @@ } - \ No newline at end of file + diff --git a/app/MindWork AI Studio/wwwroot/app.js b/app/MindWork AI Studio/wwwroot/app.js index 0db881e9..a2f8f967 100644 --- a/app/MindWork AI Studio/wwwroot/app.js +++ b/app/MindWork AI Studio/wwwroot/app.js @@ -49,7 +49,7 @@ window.formatChatInputMarkdown = function (inputId, formatType) { switch (formatType) { case 'bold': { - const text = hasSelection ? selectedText : 'bold text' + const text = hasSelection ? selectedText : '' insertedText = `**${text}**` selectionStart = start + 2 selectionEnd = selectionStart + text.length @@ -57,7 +57,7 @@ window.formatChatInputMarkdown = function (inputId, formatType) { } case 'italic': { - const text = hasSelection ? selectedText : 'italic text' + const text = hasSelection ? selectedText : '' insertedText = `*${text}*` selectionStart = start + 1 selectionEnd = selectionStart + text.length @@ -74,7 +74,7 @@ window.formatChatInputMarkdown = function (inputId, formatType) { selectionStart = start selectionEnd = start + insertedText.length } else { - const text = 'Heading' + const text = '' insertedText = `# ${text}` selectionStart = start + 2 selectionEnd = selectionStart + text.length @@ -114,9 +114,9 @@ window.formatChatInputMarkdown = function (inputId, formatType) { selectionEnd = selectionStart + selectedText.length } } else { - const text = 'code' - insertedText = `\`\`\`\n${text}\n\`\`\`` - selectionStart = start + 4 + const text = '' + insertedText = `\`${text}\`` + selectionStart = start + 1 selectionEnd = selectionStart + text.length }