diff --git a/app/MindWork AI Studio/Components/ReadFileContent.razor b/app/MindWork AI Studio/Components/ReadFileContent.razor
index 717df970..3b34fe5e 100644
--- a/app/MindWork AI Studio/Components/ReadFileContent.razor
+++ b/app/MindWork AI Studio/Components/ReadFileContent.razor
@@ -4,10 +4,24 @@
{
-
-
- @this.ButtonText
-
+
+ @if (this.ShowAttachedDocumentState && this.hasLoadedFileContent)
+ {
+
+
+
+ @this.ButtonText
+
+
+
+ }
+ else
+ {
+
+ @this.ButtonText
+
+ }
+
@if (this.IsCurrentTargetBusy)
{
@@ -18,15 +32,6 @@
@T("Drop one file here to load its content.")
}
-
-
-
- @if (this.ShowAttachedDocumentState && this.hasLoadedFileContent)
- {
-
-
-
- }
@@ -34,15 +39,23 @@
else
{
-
- @this.ButtonText
-
-
@if (this.ShowAttachedDocumentState && this.hasLoadedFileContent)
{
-
+
+
+ @this.ButtonText
+
+
}
+ else
+ {
+
+ @this.ButtonText
+
+ }
+
+
}
\ No newline at end of file