Reduce visual clutter for grouped notification

30 instead of 50 as limit. No more tiny avatars as they don't help much.
This commit is contained in:
Lim Chee Aun 2024-06-02 22:52:47 +08:00
parent adcb87679b
commit 5931ebb8fc

View file

@ -132,7 +132,7 @@ const MODERATION_WARNING_TEXT = {
suspend: 'Your account has been suspended.', suspend: 'Your account has been suspended.',
}; };
const AVATARS_LIMIT = 50; const AVATARS_LIMIT = 30;
function Notification({ function Notification({
notification, notification,
@ -374,11 +374,7 @@ function Notification({
? 'xxl' ? 'xxl'
: _accounts.length < 20 : _accounts.length < 20
? 'xl' ? 'xl'
: _accounts.length < 30 : 'l'
? 'l'
: _accounts.length < 40
? 'm'
: 's' // My god, this person is popular!
} }
key={account.id} key={account.id}
alt={`${account.displayName} @${account.acct}`} alt={`${account.displayName} @${account.acct}`}