Use the shared inner scrolling layout in the visual briefing

This commit is contained in:
Thorsten Sommer committed 2026-09-10 17:05:54 +02:00
1 parent 02d8203e58
commit 7ab658f80d
2 files changed
+6 -8

No files matched your search

@@ -6,7 +6,10 @@
<CascadingValue Value="Components.VISUAL_BRIEFING_ASSISTANT"> <CascadingValue Value="Components.VISUAL_BRIEFING_ASSISTANT">
<CascadingValue Value="@this.CurrentMediaOwner"> <CascadingValue Value="@this.CurrentMediaOwner">
<div class="visual-briefing-shell"> @* The assistant does not inherit AssistantBase, so it sets up the inner scrolling itself, the
way the log viewer does. A plain div is enough here: unlike AssistantBase, this assistant
deliberately has no area-wide drop zone, because its two zones have to be aimed at. *@
<div class="inner-scrolling-context">
<PreviewPrototype ApplyInnerScrollingFix="true"/> <PreviewPrototype ApplyInnerScrollingFix="true"/>
<MudStack Row="true" AlignItems="AlignItems.Center" Class="mb-3 mr-3" StretchItems="StretchItems.Start"> <MudStack Row="true" AlignItems="AlignItems.Center" Class="mb-3 mr-3" StretchItems="StretchItems.Start">
<MudText Typo="Typo.h3">@T("Visual Briefings")</MudText> <MudText Typo="Typo.h3">@T("Visual Briefings")</MudText>
@@ -14,6 +17,7 @@
<MudIconButton Variant="Variant.Text" Icon="@Icons.Material.Filled.Settings" OnClick="@this.OpenSettingsDialogAsync"/> <MudIconButton Variant="Variant.Text" Icon="@Icons.Material.Filled.Settings" OnClick="@this.OpenSettingsDialogAsync"/>
</MudStack> </MudStack>
<InnerScrolling>
<MudList T="Guid" <MudList T="Guid"
Color="Color.Primary" Color="Color.Primary"
Class="mb-1" Class="mb-1"
@@ -334,6 +338,7 @@
} }
} }
</main> </main>
</InnerScrolling>
</div> </div>
</CascadingValue> </CascadingValue>
</CascadingValue> </CascadingValue>
@@ -1,10 +1,3 @@
.visual-briefing-shell {
height: 100%;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
}
.visual-briefing-main { .visual-briefing-main {
min-width: 0; min-width: 0;
padding-bottom: 1rem; padding-bottom: 1rem;