preventing dynamic thumbs on pages other than the main page and attempting to fix the notification "!" to be centered in big thumbs

This commit is contained in:
2026-05-13 14:43:59 +02:00
parent 44c8e54539
commit 65c9ed82d3
2 changed files with 10 additions and 4 deletions

View File

@@ -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;