#9 - adding first stage of dynamic thumbnails on the main page
This commit is contained in:
@@ -6518,6 +6518,7 @@ class NotificationSystem {
|
||||
thumb.dataset.ext = data.mime.split('/')[1].replace('youtube', 'yt').toUpperCase();
|
||||
thumb.dataset.mode = mode;
|
||||
thumb.dataset.bg = `/t/${data.id}.webp`;
|
||||
thumb.dataset.size = '1'; // New items start with no contributions → tier 1
|
||||
thumb.style.backgroundImage = `url('/t/${data.id}.webp')`;
|
||||
thumb.style.opacity = '0';
|
||||
thumb.style.transform = 'scale(0.9)';
|
||||
|
||||
Reference in New Issue
Block a user