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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user