diff --git a/SharpRss/Services/SyndicationService.cs b/SharpRss/Services/SyndicationService.cs index 1d663a9..752dab6 100644 --- a/SharpRss/Services/SyndicationService.cs +++ b/SharpRss/Services/SyndicationService.cs @@ -116,7 +116,7 @@ namespace SharpRss.Services } private async Task SetupTestCategoriesAndFeedsAsync() { - Log.Information("Setting up test data..."); + /*Log.Information("Setting up test data..."); try { CategoryModel? newsCategory = await CreateCategoryAsync(new CategoryModel() { Name = "News", Icon = ""}); @@ -156,7 +156,7 @@ namespace SharpRss.Services catch (Exception e) { Log.Error(e, "Exception!"); - } + }*/ } } } \ No newline at end of file diff --git a/WebSharpRSS/Pages/Read.razor b/WebSharpRSS/Pages/Read.razor deleted file mode 100644 index 60bfa14..0000000 --- a/WebSharpRSS/Pages/Read.razor +++ /dev/null @@ -1,9 +0,0 @@ -@page "/read" -@using SharpRss.Services - -@inject SyndicationService _syndicationService; -Nothing here yet! - -@code { - -} \ No newline at end of file diff --git a/WebSharpRSS/Shared/ReadDialog.razor b/WebSharpRSS/Shared/ReadDialog.razor index b8b4544..022dc0a 100644 --- a/WebSharpRSS/Shared/ReadDialog.razor +++ b/WebSharpRSS/Shared/ReadDialog.razor @@ -1,9 +1,13 @@ @using WebSharpRSS.Models @using ToolQit.Extensions - - + +
+ @if (Data?.SyndicationParent.Category != null) + { + + } @if (Data?.SyndicationParent.ImageUrl != null) { @@ -13,7 +17,9 @@
-
+ + +
@((MarkupString)((Data?.Content == null || Data.Content.IsNullEmptyWhiteSpace() ? Data?.Description : Data.Content) ?? "This item doesn't contain any content!"))
diff --git a/WebSharpRSS/Shared/SyndicationListItem.razor b/WebSharpRSS/Shared/SyndicationListItem.razor index ae684c5..6dd4242 100644 --- a/WebSharpRSS/Shared/SyndicationListItem.razor +++ b/WebSharpRSS/Shared/SyndicationListItem.razor @@ -56,13 +56,13 @@ @code { [Parameter] public HashSet? Items { get; set; } - DialogOptions _dialogOptions = new DialogOptions() { FullWidth = true, MaxWidth = MaxWidth.ExtraLarge, NoHeader = true, CloseButton = true, CloseOnEscapeKey = true }; + DialogOptions _dialogOptions = new DialogOptions() { FullWidth = true, MaxWidth = MaxWidth.ExtraLarge, NoHeader = false, CloseButton = true, CloseOnEscapeKey = true }; private void Callback(SyndicationItemData syndicationItem) { var parameters = new DialogParameters(); parameters.Add("Data", syndicationItem); - _dialogService.Show("", parameters, _dialogOptions); + _dialogService.Show("Custom", parameters, _dialogOptions); Log.Verbose("Item: {ItemId} clicked", syndicationItem.Link); } diff --git a/WebSharpRSS/sharp_rss.sqlite b/WebSharpRSS/sharp_rss.sqlite index 3cdeccb..8627a81 100644 Binary files a/WebSharpRSS/sharp_rss.sqlite and b/WebSharpRSS/sharp_rss.sqlite differ