From a65c1162a5e50afbe29448c4ebbdd0fe82bfb3e9 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 13 Sep 2026 15:26:13 +0200 Subject: [PATCH] Fixed floating embedding icon when voice input is hidden (#963) --- .../Components/VoiceRecorder.razor | 42 ++++++++----- .../Layout/MainLayout.razor | 62 +++++++++---------- 2 files changed, 56 insertions(+), 48 deletions(-) diff --git a/app/MindWork AI Studio/Components/VoiceRecorder.razor b/app/MindWork AI Studio/Components/VoiceRecorder.razor index a99afd14..30b75e74 100644 --- a/app/MindWork AI Studio/Components/VoiceRecorder.razor +++ b/app/MindWork AI Studio/Components/VoiceRecorder.razor @@ -1,22 +1,32 @@ @namespace AIStudio.Components @inherits MSGComponentBase +@* + The toolbar belongs to this component, not to the places which use it: MudToolBar keeps its + minimum height even when empty. Left outside, it reserved space in the navigation bar while + this component rendered nothing at all, which made the neighboring items float above the + bottom edge. +*@ @if (this.ShouldRenderVoiceRecording) { - - @if (this.isTranscribing || this.isPreparing) - { - - } - else - { - - } - + + + + @if (this.isTranscribing || this.isPreparing) + { + + } + else + { + + } + + + } diff --git a/app/MindWork AI Studio/Layout/MainLayout.razor b/app/MindWork AI Studio/Layout/MainLayout.razor index b8e224e9..7ed77410 100644 --- a/app/MindWork AI Studio/Layout/MainLayout.razor +++ b/app/MindWork AI Studio/Layout/MainLayout.razor @@ -25,20 +25,19 @@ - @if (this.showEmbeddingStatusIcon) - { - - - - @T("Data sync") - - - - } - - - - + @* The bottom area carries the gap to the window edge once, for whichever of its items are shown: *@ + + @if (this.showEmbeddingStatusIcon) + { + + + + @T("Data sync") + + + + } + @@ -64,25 +63,24 @@ - @if (this.showEmbeddingStatusIcon) - { - - @if (this.SettingsManager.ConfigurationData.App.NavigationBehavior is NavBehavior.NEVER_EXPAND_USE_TOOLTIPS) - { - + @* The bottom area carries the gap to the window edge once, for whichever of its items are shown: *@ + + @if (this.showEmbeddingStatusIcon) + { + + @if (this.SettingsManager.ConfigurationData.App.NavigationBehavior is NavBehavior.NEVER_EXPAND_USE_TOOLTIPS) + { + + + + } + else + { - - } - else - { - - } - - } - - - - + } + + } + }