From 73fbfd7f76157b99bad363477578bb82be36b72c Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Tue, 1 Sep 2026 21:44:25 +0330 Subject: [PATCH] improving accessing contents in the bio section --- .../GanjoorPage/_InlinePageUtilsPartial.cshtml | 6 ++++++ GanjooRazor/wwwroot/css/p8.css | 15 +++++++++++++++ .../GanjoorService-Partials/GanjoorService-TOC.cs | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/GanjooRazor/Pages/Partials/GanjoorPage/_InlinePageUtilsPartial.cshtml b/GanjooRazor/Pages/Partials/GanjoorPage/_InlinePageUtilsPartial.cshtml index 25783b6e..ca201575 100644 --- a/GanjooRazor/Pages/Partials/GanjoorPage/_InlinePageUtilsPartial.cshtml +++ b/GanjooRazor/Pages/Partials/GanjoorPage/_InlinePageUtilsPartial.cshtml @@ -64,6 +64,12 @@ } + + +
+ +
+
} @if (!string.IsNullOrEmpty(Model.PreviousUrl)) diff --git a/GanjooRazor/wwwroot/css/p8.css b/GanjooRazor/wwwroot/css/p8.css index 47911d32..06f1ab97 100644 --- a/GanjooRazor/wwwroot/css/p8.css +++ b/GanjooRazor/wwwroot/css/p8.css @@ -3012,3 +3012,18 @@ mark { pointer-events: none; /* Prevents interaction */ transition: opacity 0.3s ease-out; } + +/* ---------- poet/category bio text links - same size as body text, + just a distinguishing color (matches the .poem-excerpt TOC-link look) ---------- */ + +.ganjoor-bio-text a { + color: var(--brand); + -webkit-text-fill-color: var(--brand); + transition: color 0.2s ease, -webkit-text-fill-color 0.2s ease; +} + +.ganjoor-bio-text a:hover { + color: var(--lapis); + -webkit-text-fill-color: var(--lapis); + text-decoration: underline; +} diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-TOC.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-TOC.cs index bf1a4c26..247cec7d 100644 --- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-TOC.cs +++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-TOC.cs @@ -253,7 +253,7 @@ namespace RMuseum.Services.Implementation var cat = await context.GanjoorCategories.AsNoTracking().Where(c => c.Id == catId).SingleAsync(); var poet = await context.GanjoorPoets.AsNoTracking().Where(p => p.Id == cat.PoetId).SingleAsync(); var rhythms = await context.GanjoorMetres.ToListAsync(); - string html = string.IsNullOrEmpty(cat.DescriptionHtml) ? "" : $"{cat.DescriptionHtml.Replace("../", "https://ganjoor.net/")}{Environment.NewLine}"; + string html = (string.IsNullOrEmpty(cat.DescriptionHtml) ? "" : $"
{cat.DescriptionHtml.Replace("../", "https://ganjoor.net/")}
") + $"{Environment.NewLine}"; var subCats = await context.GanjoorCategories.AsNoTracking().Where(c => c.ParentId == catId).OrderBy(c => c.MixedModeOrder).ThenBy(c => c.Id).ToListAsync(); var poems = await context.GanjoorPoems.AsNoTracking().Where(p => p.CatId == catId).OrderBy(p => p.MixedModeOrder).ThenBy(p => p.Id).ToListAsync();