From 5931ebb8fcc503f67b1e2ad40a644d70c8e773b9 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 2 Jun 2024 22:52:47 +0800 Subject: [PATCH] Reduce visual clutter for grouped notification 30 instead of 50 as limit. No more tiny avatars as they don't help much. --- src/components/notification.jsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/notification.jsx b/src/components/notification.jsx index d2eadfbd..1308948b 100644 --- a/src/components/notification.jsx +++ b/src/components/notification.jsx @@ -132,7 +132,7 @@ const MODERATION_WARNING_TEXT = { suspend: 'Your account has been suspended.', }; -const AVATARS_LIMIT = 50; +const AVATARS_LIMIT = 30; function Notification({ notification, @@ -374,11 +374,7 @@ function Notification({ ? 'xxl' : _accounts.length < 20 ? 'xl' - : _accounts.length < 30 - ? 'l' - : _accounts.length < 40 - ? 'm' - : 's' // My god, this person is popular! + : 'l' } key={account.id} alt={`${account.displayName} @${account.acct}`}