From 1f33ca6cdf7f234ee8408ea58586dc17ec2d9c69 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 20 Mar 2026 13:33:28 -0400 Subject: [PATCH] fix: three post-review corrections - Filter source tags from gallery overlay refresh in view-modal.js and bulk-select.js - Fix split(':', 1) bug causing series name to render as "undefined" - Offset reader quick-nav above floating page indicator to prevent overlap Co-Authored-By: Claude Sonnet 4.6 --- app/static/js/bulk-select.js | 4 ++-- app/static/js/view-modal.js | 4 ++-- app/static/style.css | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/static/js/bulk-select.js b/app/static/js/bulk-select.js index 30a15dc..e048a99 100644 --- a/app/static/js/bulk-select.js +++ b/app/static/js/bulk-select.js @@ -508,8 +508,8 @@ if (!data.ok) return; - // Filter out archive tags (they're not shown) - const visibleTags = (data.tags || []).filter(t => t.kind !== 'archive'); + // Filter out archive and source tags (they're not shown in overlays) + const visibleTags = (data.tags || []).filter(t => t.kind !== 'archive' && t.kind !== 'source'); // Find or create tag overlay let overlay = item.querySelector('.tag-overlay'); diff --git a/app/static/js/view-modal.js b/app/static/js/view-modal.js index eb5d950..7ce228d 100644 --- a/app/static/js/view-modal.js +++ b/app/static/js/view-modal.js @@ -117,7 +117,7 @@ document.addEventListener('DOMContentLoaded', () => { const data = await r.json(); if (!data.ok) return; - const visibleTags = (data.tags || []).filter(t => t.kind !== 'archive'); + const visibleTags = (data.tags || []).filter(t => t.kind !== 'archive' && t.kind !== 'source'); let overlay = item.querySelector('.tag-overlay'); if (visibleTags.length === 0) { @@ -233,7 +233,7 @@ document.addEventListener('DOMContentLoaded', () => { // Display series name (strip prefix) const displayName = seriesPage.series_name.includes(':') - ? seriesPage.series_name.split(':', 1)[1] + ? seriesPage.series_name.split(':', 2)[1] : seriesPage.series_name; if (seriesNameEl) { seriesNameEl.textContent = displayName; diff --git a/app/static/style.css b/app/static/style.css index b101f16..6b7cbd0 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -2740,7 +2740,7 @@ body.select-mode .gallery-infinite-container { .reader-quick-nav { position: fixed; right: 1.5rem; - bottom: 1.5rem; + bottom: 5rem; display: flex; flex-direction: column; gap: 0.5rem;