mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 04:37:59 +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
|
@namespace AIStudio.Components
|
||||||
@inherits MSGComponentBase
|
@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.ShouldRenderVoiceRecording)
|
||||||
{
|
{
|
||||||
|
<MudStack AlignItems="AlignItems.Center">
|
||||||
|
<MudToolBar WrapContent="true">
|
||||||
<MudTooltip Text="@this.Tooltip">
|
<MudTooltip Text="@this.Tooltip">
|
||||||
@if (this.isTranscribing || this.isPreparing)
|
@if (this.isTranscribing || this.isPreparing)
|
||||||
{
|
{
|
||||||
@@ -19,4 +27,6 @@
|
|||||||
ToggledColor="Color.Error"/>
|
ToggledColor="Color.Error"/>
|
||||||
}
|
}
|
||||||
</MudTooltip>
|
</MudTooltip>
|
||||||
|
</MudToolBar>
|
||||||
|
</MudStack>
|
||||||
}
|
}
|
||||||
@@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
<MudSpacer/>
|
<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)
|
@if (this.showEmbeddingStatusIcon)
|
||||||
{
|
{
|
||||||
<MudNavMenu>
|
<MudNavMenu>
|
||||||
@@ -35,10 +37,7 @@
|
|||||||
</MudTooltip>
|
</MudTooltip>
|
||||||
</MudNavMenu>
|
</MudNavMenu>
|
||||||
}
|
}
|
||||||
<MudStack AlignItems="AlignItems.Center" Class="pb-2">
|
|
||||||
<MudToolBar WrapContent="true">
|
|
||||||
<VoiceRecorder />
|
<VoiceRecorder />
|
||||||
</MudToolBar>
|
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudDrawer>
|
</MudDrawer>
|
||||||
</MudDrawerContainer>
|
</MudDrawerContainer>
|
||||||
@@ -64,6 +63,8 @@
|
|||||||
|
|
||||||
<MudSpacer/>
|
<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)
|
@if (this.showEmbeddingStatusIcon)
|
||||||
{
|
{
|
||||||
<MudNavMenu>
|
<MudNavMenu>
|
||||||
@@ -79,10 +80,7 @@
|
|||||||
}
|
}
|
||||||
</MudNavMenu>
|
</MudNavMenu>
|
||||||
}
|
}
|
||||||
<MudStack AlignItems="AlignItems.Center" Class="pb-2">
|
|
||||||
<MudToolBar WrapContent="true">
|
|
||||||
<VoiceRecorder />
|
<VoiceRecorder />
|
||||||
</MudToolBar>
|
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user