mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 14:18:00 +00:00
Fix floating embedding icon when voice input is hidden
This commit is contained in:
2 files changed
+14
-6
No files matched your search
@@ -1,8 +1,16 @@
|
||||
@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)
|
||||
{
|
||||
<MudStack AlignItems="AlignItems.Center">
|
||||
<MudToolBar WrapContent="true">
|
||||
<MudTooltip Text="@this.Tooltip">
|
||||
@if (this.isTranscribing || this.isPreparing)
|
||||
{
|
||||
@@ -19,4 +27,6 @@
|
||||
ToggledColor="Color.Error"/>
|
||||
}
|
||||
</MudTooltip>
|
||||
</MudToolBar>
|
||||
</MudStack>
|
||||
}
|
||||
@@ -25,6 +25,8 @@
|
||||
|
||||
<MudSpacer/>
|
||||
|
||||
@* The bottom area carries the gap to the window edge once, for whichever of its items are shown: *@
|
||||
<MudStack Spacing="0" Class="pb-2">
|
||||
@if (this.showEmbeddingStatusIcon)
|
||||
{
|
||||
<MudNavMenu>
|
||||
@@ -35,10 +37,7 @@
|
||||
</MudTooltip>
|
||||
</MudNavMenu>
|
||||
}
|
||||
<MudStack AlignItems="AlignItems.Center" Class="pb-2">
|
||||
<MudToolBar WrapContent="true">
|
||||
<VoiceRecorder />
|
||||
</MudToolBar>
|
||||
</MudStack>
|
||||
</MudDrawer>
|
||||
</MudDrawerContainer>
|
||||
@@ -64,6 +63,8 @@
|
||||
|
||||
<MudSpacer/>
|
||||
|
||||
@* The bottom area carries the gap to the window edge once, for whichever of its items are shown: *@
|
||||
<MudStack Spacing="0" Class="pb-2">
|
||||
@if (this.showEmbeddingStatusIcon)
|
||||
{
|
||||
<MudNavMenu>
|
||||
@@ -79,10 +80,7 @@
|
||||
}
|
||||
</MudNavMenu>
|
||||
}
|
||||
<MudStack AlignItems="AlignItems.Center" Class="pb-2">
|
||||
<MudToolBar WrapContent="true">
|
||||
<VoiceRecorder />
|
||||
</MudToolBar>
|
||||
</MudStack>
|
||||
</MudPaper>
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user