Fix TOC open crash from infinite ayah reload loop.
build-and-deploy / deploy (push) Successful in 4m4s

Load the surah list once on open, stop progress ticks from re-rendering the dock, and keep TOC row markup stable for Blazor diffs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
masoodafar-web
2026-10-10 03:17:26 +03:30
parent a63d482e15
commit 0cddd0f59a
4 changed files with 71 additions and 40 deletions
+5 -2
View File
@@ -518,19 +518,22 @@ button, input { font: inherit; }
.toc-row-btn {
width: 100%; border: 0; background: transparent; cursor: pointer;
display: grid;
grid-template-columns: auto 1fr auto;
grid-template-columns: 36px 1fr auto;
align-items: center;
gap: 0.75rem;
padding: 0.95rem 1rem;
text-align: right;
color: inherit;
}
.toc-play-slot {
width: 36px; height: 36px;
display: grid; place-items: center;
}
.toc-play-dot {
width: 36px; height: 36px; border-radius: 50%;
background: var(--brand); color: #fff;
display: grid; place-items: center; font-size: 0.85rem;
}
.toc-row:not(.active) .toc-row-btn { grid-template-columns: 1fr auto; }
.toc-row-main { display: grid; gap: 0.2rem; min-width: 0; }
.toc-row-title { font-weight: 700; color: var(--ink); }
.toc-row-preview {