mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-14 23:41:37 +00:00
Add file attachments badge and tooltip to ContentBlockComponent
This commit is contained in:
parent
3f2dc26cab
commit
c2845e1592
@ -16,11 +16,19 @@
|
|||||||
</MudText>
|
</MudText>
|
||||||
</CardHeaderContent>
|
</CardHeaderContent>
|
||||||
<CardHeaderActions>
|
<CardHeaderActions>
|
||||||
|
@if (this.Content.FileAttachments.Count > 0)
|
||||||
|
{
|
||||||
|
<MudTooltip Text="@T("Number of attachments")" Placement="Placement.Bottom">
|
||||||
|
<MudBadge Content="@this.Content.FileAttachments.Count" Color="Color.Primary" Overlap="true" BadgeClass="sources-card-header">
|
||||||
|
<MudIconButton Icon="@Icons.Material.Filled.AttachFile" />
|
||||||
|
</MudBadge>
|
||||||
|
</MudTooltip>
|
||||||
|
}
|
||||||
@if (this.Content.Sources.Count > 0)
|
@if (this.Content.Sources.Count > 0)
|
||||||
{
|
{
|
||||||
<MudTooltip Text="@T("Number of sources")" Placement="Placement.Bottom">
|
<MudTooltip Text="@T("Number of sources")" Placement="Placement.Bottom">
|
||||||
<MudBadge Content="@this.Content.Sources.Count" Color="Color.Primary" Overlap="true" BadgeClass="sources-card-header">
|
<MudBadge Content="@this.Content.Sources.Count" Color="Color.Primary" Overlap="true" BadgeClass="sources-card-header">
|
||||||
<MudIconButton Icon="@Icons.Material.Filled.Link" />
|
<MudIconButton Icon="@Icons.Material.Filled.Link"/>
|
||||||
</MudBadge>
|
</MudBadge>
|
||||||
</MudTooltip>
|
</MudTooltip>
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user