Show AllManga alternative watchlist titles

This commit is contained in:
Dymas
2026-05-23 18:34:24 +02:00
parent c6ba7fdbe2
commit 84c2e533d0
7 changed files with 204 additions and 7 deletions
+16 -1
View File
@@ -413,6 +413,14 @@ WATCHLIST_HTML = r"""<!doctype html>
flex: 1;
min-width: 0;
}
.alt-title {
color: var(--muted);
font-size: 12px;
line-height: 1.35;
margin-top: 4px;
overflow-wrap: anywhere;
min-height: 1.35em;
}
.card-title a {
color: inherit;
text-decoration: none;
@@ -991,7 +999,10 @@ WATCHLIST_HTML = r"""<!doctype html>
<input class="thumb-upload-input" type="file" accept="image/*" hidden>
</div>
<div class="title-row">
<div class="card-title"></div>
<div>
<div class="card-title"></div>
<div class="alt-title"></div>
</div>
<span class="finish-check ${item.finished_badge || ""}" ${item.finished_badge ? "" : "hidden"}>${item.finished_badge ? "&check;" : ""}</span>
</div>
<div class="count-row">
@@ -1019,6 +1030,10 @@ WATCHLIST_HTML = r"""<!doctype html>
titleLink.rel = "noopener noreferrer";
titleLink.textContent = item.title;
titleNode.replaceChildren(titleLink);
const altTitleNode = card.querySelector(".alt-title");
altTitleNode.textContent = (item.display_alt_titles || []).length
? `Alt: ${item.display_alt_titles.join(" · ")}`
: "";
const finishCheck = card.querySelector(".finish-check");
if (finishCheck && item.finished_badge) {
finishCheck.title = item.finished_badge === "downloaded"