소스 검색

🐛 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
t0ng7u 6 달 전
부모
커밋
005e9659e1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/src/components/layout/HeaderBar/NotificationButton.jsx

+ 1 - 1
web/src/components/layout/HeaderBar/NotificationButton.jsx

@@ -34,7 +34,7 @@ const NotificationButton = ({ unreadCount, onNoticeOpen, t }) => {
   if (unreadCount > 0) {
     return (
       <Badge count={unreadCount} type="danger" overflowCount={99}>
-        <Button {...buttonProps} size='small' />
+        <Button {...buttonProps} />
       </Badge>
     );
   }