Tidy watchlist action button layout

This commit is contained in:
Dymas
2026-05-25 23:34:52 +02:00
parent 5db94cffb1
commit 8fb32a59ba
6 changed files with 16 additions and 8 deletions
+5 -5
View File
@@ -639,7 +639,7 @@ WATCHLIST_HTML = r"""<!doctype html>
}
.card-actions {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.card-actions button {
@@ -1374,9 +1374,9 @@ WATCHLIST_HTML = r"""<!doctype html>
<div class="muted card-date"></div>
<div class="card-actions">
<button class="primary" type="button">Refresh</button>
<button class="danger" type="button">Remove</button>
<button class="ghost" type="button">Download all</button>
<button class="ghost" type="button">Auto-download</button>
<button class="danger" type="button">Remove</button>
<div class="download-picker">
<button class="ghost" type="button">Sub</button>
<button class="ghost" type="button">Dub</button>
@@ -1426,9 +1426,9 @@ WATCHLIST_HTML = r"""<!doctype html>
});
const actionButtons = card.querySelector(".card-actions").querySelectorAll("button");
const refreshBtn = actionButtons[0];
const downloadBtn = actionButtons[1];
const autoDownloadBtn = actionButtons[2];
const removeBtn = actionButtons[3];
const removeBtn = actionButtons[1];
const downloadBtn = actionButtons[2];
const autoDownloadBtn = actionButtons[3];
const subBtn = actionButtons[4];
const dubBtn = actionButtons[5];
const downloadPicker = card.querySelector(".download-picker");