mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-13 15:13:36 +00:00
28 lines
965 B
Plaintext
28 lines
965 B
Plaintext
@inherits MSGComponentBase
|
|
|
|
@if (this.IsFramed)
|
|
{
|
|
<div data-drop-zone-id="@this.zoneId">
|
|
<MudPaper Outlined="@true" Class="@this.FrameClass" Style="@this.Style">
|
|
@this.ChildContent?.Invoke(this.isHighlighted)
|
|
</MudPaper>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
@* An area renders one element, with the content immediately inside it. Layouts hang child
|
|
selectors on that element, for instance app.css does on .inner-scrolling-context, so an extra
|
|
level here would break them. The cascading value renders no element of its own. *@
|
|
<div class="@this.Class" style="@this.Style" data-drop-zone-id="@this.zoneId">
|
|
@if (this.areaState is null)
|
|
{
|
|
@this.ChildContent?.Invoke(this.isHighlighted)
|
|
}
|
|
else
|
|
{
|
|
<CascadingValue Value="@this.areaState" IsFixed="@true">
|
|
@this.ChildContent?.Invoke(this.isHighlighted)
|
|
</CascadingValue>
|
|
}
|
|
</div>
|
|
} |