2023-05-26 21:54:12 +02:00
|
|
|
@using WebSharpRSS.Models
|
2023-06-24 00:15:54 +02:00
|
|
|
@using ToolQit.Extensions
|
2023-05-26 21:54:12 +02:00
|
|
|
|
2023-07-02 20:54:18 +02:00
|
|
|
<MudDialog DefaultFocus="DefaultFocus.Element">
|
|
|
|
<TitleContent>
|
2023-06-24 00:15:54 +02:00
|
|
|
<div style="justify-self: start;" class="d-flex align-center">
|
2023-07-02 20:54:18 +02:00
|
|
|
@if (Data?.SyndicationParent.Category != null)
|
|
|
|
{
|
|
|
|
<MudIcon Icon="@Data.SyndicationParent.Category.Icon" Size="Size.Medium" Style="@($"color:{Data.SyndicationParent.Category.HexColor}")"/>
|
|
|
|
}
|
2023-06-24 00:15:54 +02:00
|
|
|
@if (Data?.SyndicationParent.ImageUrl != null)
|
|
|
|
{
|
|
|
|
<MudImage Src="@Data.SyndicationParent.ImageUrl" ObjectFit="ObjectFit.Contain" Width="32" Height="32"/>
|
|
|
|
}
|
|
|
|
<div class="d-inline px-3 align-center" style="font-size: 30px;">
|
|
|
|
@((MarkupString)(Data?.Title ?? "This item doesn't contains a title!"))
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<MudDivider DividerType="DividerType.FullWidth" Light="false" Class="my-2"/>
|
2023-07-02 20:54:18 +02:00
|
|
|
</TitleContent>
|
|
|
|
<DialogContent>
|
|
|
|
<div style="font-size: 20px; max-height: 80vh; height: auto; overflow-y: scroll;">
|
2023-06-24 00:15:54 +02:00
|
|
|
@((MarkupString)((Data?.Content == null || Data.Content.IsNullEmptyWhiteSpace() ? Data?.Description : Data.Content) ?? "This item doesn't contain any content!"))
|
|
|
|
</div>
|
2023-05-26 21:54:12 +02:00
|
|
|
</DialogContent>
|
|
|
|
</MudDialog>
|
|
|
|
|
|
|
|
@code {
|
|
|
|
[Parameter]
|
2023-06-16 22:53:26 +02:00
|
|
|
public SyndicationItemData? Data { get; set; }
|
2023-05-26 21:54:12 +02:00
|
|
|
|
|
|
|
}
|