From 65c9ed82d32459e62a864620ff66db0d11763d02 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Wed, 13 May 2026 14:43:59 +0200 Subject: [PATCH] preventing dynamic thumbs on pages other than the main page and attempting to fix the notification "!" to be centered in big thumbs --- public/s/css/f0ckm.css | 6 ++++-- src/inc/routeinc/f0cklib.mjs | 8 ++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/public/s/css/f0ckm.css b/public/s/css/f0ckm.css index f09588c..a7212e2 100644 --- a/public/s/css/f0ckm.css +++ b/public/s/css/f0ckm.css @@ -9275,8 +9275,10 @@ div.posts>a.thumb.has-notif p::after { content: "!" !important; position: absolute !important; bottom: 10px !important; - left: 50% !important; - transform: translateX(-50%) !important; + left: 0 !important; + width: 100% !important; + text-align: center !important; + transform: none !important; color: var(--accent) !important; font-size: 40px !important; font-weight: 900 !important; diff --git a/src/inc/routeinc/f0cklib.mjs b/src/inc/routeinc/f0cklib.mjs index e5c87e6..f998fc7 100644 --- a/src/inc/routeinc/f0cklib.mjs +++ b/src/inc/routeinc/f0cklib.mjs @@ -260,8 +260,12 @@ export default { limit ${eps} `; - // Compute thumb_size tier from contribution score (only meaningful when dynamic thumbs enabled) - if (cfg.websrv.enable_dynamic_thumbs) { + // Dynamic thumb sizing: only on the unfiltered main feed. + // Profile pages, tag searches, halls, favorites, mime filters all use tier 1 (1×1). + const isMainFeed = cfg.websrv.enable_dynamic_thumbs + && !rawUser && !rawTag && !rawHall && !rawUserHall && !rawMime && !fav; + + if (isMainFeed) { for (const row of rows) { const c = Number(row.contribution) || 0; row.thumb_size = c >= 5 ? 2 : 1;