From 8518e87c8dcea0a87dc06924dae1a5cecd9e9bed Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Sun, 26 Jul 2026 22:09:44 +0200 Subject: [PATCH] fix pagination --- public/s/css/f0ckm.css | 11 ++++++----- src/index.mjs | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/public/s/css/f0ckm.css b/public/s/css/f0ckm.css index 60c9d2a..e1c5e40 100644 --- a/public/s/css/f0ckm.css +++ b/public/s/css/f0ckm.css @@ -4623,16 +4623,17 @@ span.placeholder { transition: right 0.3s ease-in-out; } -/* Sidebar hidden — reclaim the full width */ -body.sidebar-right-hidden .pagination-container-fluid { - right: 0; -} - /* Modern layout: wider sidebar needs wider offset */ body.layout-modern .pagination-container-fluid { right: 400px; } +/* Sidebar hidden — reclaim the full width */ +body.sidebar-right-hidden .pagination-container-fluid, +body.layout-modern.sidebar-right-hidden .pagination-container-fluid { + right: 0; +} + .bottom-pagination.fixed-pagination { margin: 10px auto; pointer-events: auto; diff --git a/src/index.mjs b/src/index.mjs index 51a3d86..9f17528 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -457,8 +457,8 @@ process.on('uncaughtException', err => { // Encourage connection reuse — helps external tools like ShareX avoid repeated TCP/TLS handshakes res.setHeader('Connection', 'keep-alive'); - // Tor Onion-Location header: advertises .onion service counterpart to Tor Browser users - if (cfg.main.onion && !req.headers['host']?.endsWith('.onion')) { + // Tor Onion-Location header: advertises .onion service counterpart to Tor Browser users when enabled + if (cfg.websrv?.enable_tor_hs !== false && cfg.main?.onion && !req.headers['host']?.endsWith('.onion')) { const p = req.url?.pathname || '/'; const s = req.url?.search || ''; const onionHost = cfg.main.onion.replace(/\/+$/, '');