improving accessing contents in the bio section

This commit is contained in:
Hamid Reza Mohammadi 2026-09-01 21:44:25 +03:30
parent d07a73c165
commit 73fbfd7f76
3 changed files with 22 additions and 1 deletions

View File

@ -64,6 +64,12 @@
</div>
</a>
}
<a href="#after-bio" role="button" class="cursor-pointer" title="لغزش به محتوا">
<div class="circled-number">
<i class="notranslate noindent-info-button menu-icon"></i>
</div>
</a>
}
@if (!string.IsNullOrEmpty(Model.PreviousUrl))

View File

@ -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;
}

View File

@ -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) ? "" : $"<div class=\"ganjoor-bio-text\">{cat.DescriptionHtml.Replace("../", "https://ganjoor.net/")}</div>") + $"<a id=\"after-bio\"></a>{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();