mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 11:39:48 +00:00
Fixed plugin table
This commit is contained in:
parent
3f57207512
commit
73eab18cbc
@ -11,15 +11,17 @@
|
|||||||
|
|
||||||
<MudTable Items="@PluginFactory.AvailablePlugins" Hover="@true" GroupBy="@this.groupConfig" Class="border-dashed border rounded-lg">
|
<MudTable Items="@PluginFactory.AvailablePlugins" Hover="@true" GroupBy="@this.groupConfig" Class="border-dashed border rounded-lg">
|
||||||
<ColGroup>
|
<ColGroup>
|
||||||
|
<col style="width: 2em;" />
|
||||||
|
<col/>
|
||||||
<col/>
|
<col/>
|
||||||
<col style="width: 12em;"/>
|
<col style="width: 12em;"/>
|
||||||
</ColGroup>
|
</ColGroup>
|
||||||
<HeaderContent>
|
<HeaderContent>
|
||||||
<MudTh>Plugin</MudTh>
|
<MudTh colspan="2">Plugins</MudTh>
|
||||||
<MudTh>Actions</MudTh>
|
<MudTh>Actions</MudTh>
|
||||||
</HeaderContent>
|
</HeaderContent>
|
||||||
<GroupHeaderTemplate>
|
<GroupHeaderTemplate>
|
||||||
<MudTh Class="mud-table-cell-custom-group" colspan="2">
|
<MudTh Class="mud-table-cell-custom-group" colspan="3">
|
||||||
@switch (context.Key)
|
@switch (context.Key)
|
||||||
{
|
{
|
||||||
case GROUP_ENABLED:
|
case GROUP_ENABLED:
|
||||||
@ -43,22 +45,26 @@
|
|||||||
</MudTh>
|
</MudTh>
|
||||||
</GroupHeaderTemplate>
|
</GroupHeaderTemplate>
|
||||||
<RowTemplate>
|
<RowTemplate>
|
||||||
<MudStack Row="true">
|
<MudTd>
|
||||||
<MudAvatar Size="Size.Medium" Class="align-content-stretch me-4">
|
<MudAvatar Size="Size.Medium" Class="align-content-stretch">
|
||||||
<div class="plugin-icon-container">
|
<div class="plugin-icon-container">
|
||||||
@((MarkupString)context.IconSVG)
|
@((MarkupString)context.IconSVG)
|
||||||
</div>
|
</div>
|
||||||
</MudAvatar>
|
</MudAvatar>
|
||||||
<MudStack Class="mb-2 mt-2">
|
</MudTd>
|
||||||
|
<MudTd>
|
||||||
|
<MudStack>
|
||||||
<MudText Typo="Typo.h6">
|
<MudText Typo="Typo.h6">
|
||||||
@context.Name
|
@context.Name
|
||||||
</MudText>
|
</MudText>
|
||||||
<MudJustifiedText Typo="Typo.body1">
|
<MudText Typo="Typo.body1">
|
||||||
@context.Description
|
@context.Description
|
||||||
</MudJustifiedText>
|
</MudText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudStack>
|
</MudTd>
|
||||||
|
<MudTd>
|
||||||
|
Actions...
|
||||||
|
</MudTd>
|
||||||
</RowTemplate>
|
</RowTemplate>
|
||||||
</MudTable>
|
</MudTable>
|
||||||
</InnerScrolling>
|
</InnerScrolling>
|
||||||
|
@ -22,6 +22,8 @@ public partial class Plugins : ComponentBase
|
|||||||
{
|
{
|
||||||
this.groupConfig = new TableGroupDefinition<IPluginMetadata>
|
this.groupConfig = new TableGroupDefinition<IPluginMetadata>
|
||||||
{
|
{
|
||||||
|
Expandable = true,
|
||||||
|
IsInitiallyExpanded = true,
|
||||||
Selector = pluginMeta =>
|
Selector = pluginMeta =>
|
||||||
{
|
{
|
||||||
if (pluginMeta.IsInternal)
|
if (pluginMeta.IsInternal)
|
||||||
|
Loading…
Reference in New Issue
Block a user