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

@@ -9275,8 +9275,10 @@ div.posts>a.thumb.has-notif p::after {
content: "!" !important; content: "!" !important;
position: absolute !important; position: absolute !important;
bottom: 10px !important; bottom: 10px !important;
left: 50% !important; left: 0 !important;
transform: translateX(-50%) !important; width: 100% !important;
text-align: center !important;
transform: none !important;
color: var(--accent) !important; color: var(--accent) !important;
font-size: 40px !important; font-size: 40px !important;
font-weight: 900 !important; font-weight: 900 !important;

View File

@@ -260,8 +260,12 @@ export default {
limit ${eps} limit ${eps}
`; `;
// Compute thumb_size tier from contribution score (only meaningful when dynamic thumbs enabled) // Dynamic thumb sizing: only on the unfiltered main feed.
if (cfg.websrv.enable_dynamic_thumbs) { // 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) { for (const row of rows) {
const c = Number(row.contribution) || 0; const c = Number(row.contribution) || 0;
row.thumb_size = c >= 5 ? 2 : 1; row.thumb_size = c >= 5 ? 2 : 1;