From 4a762b3fc08f13880f5d97da2c08dbc57e6515ab Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 24 May 2025 18:13:38 +0200 Subject: [PATCH] Refactor the chat template button to show icon-only by default --- .../Components/ChatTemplateSelection.razor | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/MindWork AI Studio/Components/ChatTemplateSelection.razor b/app/MindWork AI Studio/Components/ChatTemplateSelection.razor index 9d23ae2c..ded0cd0f 100644 --- a/app/MindWork AI Studio/Components/ChatTemplateSelection.razor +++ b/app/MindWork AI Studio/Components/ChatTemplateSelection.razor @@ -4,9 +4,16 @@ - - @(this.CurrentChatTemplate != ChatTemplate.NO_CHATTEMPLATE ? this.CurrentChatTemplate.Name : "") - + @if (this.CurrentChatTemplate != ChatTemplate.NO_CHAT_TEMPLATE) + { + + @this.CurrentChatTemplate.Name + + } + else + { + + } @foreach (var chatTemplate in this.SettingsManager.ConfigurationData.ChatTemplates.GetAllChatTemplates())