Commit 54e03c42 by t0ng7u

馃悰 fix(header): prevent NotificationButton from shrinking when unread badge appears

- Remove `size='small'` when the button is wrapped by `Badge`
- Keep button dimensions consistent with/without badge
- Preserve 18px icon size and existing styles/accessibility
- Lint check passed with no issues

Files: web/src/components/layout/HeaderBar/NotificationButton.jsx
parent 82e87b84
...@@ -34,7 +34,7 @@ const NotificationButton = ({ unreadCount, onNoticeOpen, t }) => { ...@@ -34,7 +34,7 @@ const NotificationButton = ({ unreadCount, onNoticeOpen, t }) => {
if (unreadCount > 0) { if (unreadCount > 0) {
return ( return (
<Badge count={unreadCount} type="danger" overflowCount={99}> <Badge count={unreadCount} type="danger" overflowCount={99}>
<Button {...buttonProps} size='small' /> <Button {...buttonProps} />
</Badge> </Badge>
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment