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

This commit is contained in:
Hamid Reza Mohammadi 2025-03-13 14:17:59 +03:30
parent 1f1757eeaf
commit 312f95246a
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RMuseum.Services.Implementation
{
@ -858,7 +858,7 @@ namespace RMuseum.Services.Implementation
poetId == relatedPoetId
&&
normalRelatedPoems.Where(r => r.Id == Guid.Empty && r.PoemId == quotedPoem.RelatedPoemId && r.RelatedPoemId == quotedPoem.PoemId && (r.CoupletIndex == quotedPoem.RelatedCoupletIndex || r.RelatedCoupletIndex == quotedPoem.CoupletIndex )).Any())
{
{//not working ???
continue;
}
quotedPoem.Id = Guid.Empty;

View File

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