restore poets page layout to make all its sections accessible while scrolling #475

This commit is contained in:
Hamid Reza Mohammadi 2025-03-13 13:05:37 +03:30
parent 0d61d8cf04
commit 4a11b19e50

View File

@ -710,7 +710,12 @@ namespace RMuseum.Services.Implementation
private string _AddTabs(string html, GanjoorCat cat, string active)
{
html += $"<div class=\"poempretab\" id=\"{active}\"></div>{Environment.NewLine}";
html += $"<div class=\"poempretab\" id=\"{active}\">";
if (active == "stats")
{
html += "<div id=\"pretab\"></div>";
}
html += $"</div>{Environment.NewLine}";
html += $"<div class=\"poemtab\">{Environment.NewLine}";
html += $"<div class=\"poemtablinks{(active == "stats" ? " active" : "")}\"><a href=\"#stats\">آمار</a></div>{Environment.NewLine}";
if (cat.ParentId == null)