From c99be93bc5efd1c875f5edae1b341dcc92c993d5 Mon Sep 17 00:00:00 2001 From: krut_ni Date: Tue, 28 Jul 2026 21:20:44 +0200 Subject: [PATCH] coverting the export button into a menu and wiring them up to the method --- .../Chat/ContentBlockComponent.razor | 106 ++++++++++-------- 1 file changed, 58 insertions(+), 48 deletions(-) diff --git a/app/MindWork AI Studio/Chat/ContentBlockComponent.razor b/app/MindWork AI Studio/Chat/ContentBlockComponent.razor index 52999549..8bb7b09f 100644 --- a/app/MindWork AI Studio/Chat/ContentBlockComponent.razor +++ b/app/MindWork AI Studio/Chat/ContentBlockComponent.razor @@ -16,55 +16,65 @@ - @if (this.Content.FileAttachments.Count > 0) - { - - - - - - } - @if (this.Content.Sources.Count > 0) - { - - - - - - } - @if (this.IsSecondToLastBlock && this.Role is ChatRole.USER && this.EditLastUserBlockFunc is not null) - { - - - - } - @if (this.IsLastContentBlock && this.Role is ChatRole.USER && this.EditLastBlockFunc is not null) - { - - - - } - @if (this.IsLastContentBlock && this.Role is ChatRole.AI && this.RegenerateFunc is not null) - { - - - - } - @if (this.RemoveBlockFunc is not null) - { - - - - } +
+ @if (this.Content.FileAttachments.Count > 0) + { + + + + + + } + @if (this.Content.Sources.Count > 0) + { + + + + + + } + @if (this.IsSecondToLastBlock && this.Role is ChatRole.USER && this.EditLastUserBlockFunc is not null) + { + + + + } + @if (this.IsLastContentBlock && this.Role is ChatRole.USER && this.EditLastBlockFunc is not null) + { + + + + } + @if (this.IsLastContentBlock && this.Role is ChatRole.AI && this.RegenerateFunc is not null) + { + + + + } + @if (this.RemoveBlockFunc is not null) + { + + + + } - @if (this.Role is ChatRole.AI) - { - - - - } - + @if (this.Role is ChatRole.AI) + { + + + + @T("Microsoft Word (.docx)") + + + + @T("OpenDocument Text (.odt)") + + + + + } +