From 1a567a19fe288454bec391faf44f937cddfdff4d Mon Sep 17 00:00:00 2001 From: Bryan Bailey Date: Mon, 9 Mar 2026 08:53:26 -0400 Subject: [PATCH] feat(web): add pagination and fix port binding for Tailscale access - Paginate comic grid at 48 per page with smart page number controls - Bind container port to 0.0.0.0 so Tailscale traffic can reach WSL2 --- docker-compose.yml | 2 +- web/static/index.html | 98 +++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 95 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0c9cf0b..4921195 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ services: yoink: build: . ports: - - "8080:8080" + - "0.0.0.0:8080:8080" volumes: - ./library:/library environment: diff --git a/web/static/index.html b/web/static/index.html index 137f5f6..ba7d134 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -450,6 +450,44 @@ text-shadow: 0 1px 4px rgba(0,0,0,0.8); } + /* ── Pagination ──────────────────────────────────────────────────────── */ + #pagination { + display: flex; + align-items: center; + justify-content: center; + gap: 4px; + margin-top: 36px; + padding-bottom: 36px; + flex-wrap: wrap; + } + + .page-btn { + height: 34px; + min-width: 34px; + padding: 0 12px; + background: var(--surface2); + border: 1px solid var(--border); + border-radius: var(--radius-sm); + color: var(--text2); + font-family: inherit; + font-size: 0.8rem; + font-weight: 600; + cursor: pointer; + transition: border-color 0.12s, color 0.12s, background 0.12s; + white-space: nowrap; + } + + .page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--text); } + .page-btn:disabled { opacity: 0.3; cursor: not-allowed; } + .page-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); } + + .page-ellipsis { + color: var(--muted); + font-size: 0.8rem; + padding: 0 4px; + line-height: 34px; + } + /* ── Skeleton loading cards ──────────────────────────────────────────── */ .skeleton-card { width: 150px; @@ -645,6 +683,7 @@
+
@@ -661,10 +700,12 @@