diff --git a/frontend/src/pages/sub/SubPage.css b/frontend/src/pages/sub/SubPage.css index d265ba98..fabeaac2 100644 --- a/frontend/src/pages/sub/SubPage.css +++ b/frontend/src/pages/sub/SubPage.css @@ -133,8 +133,3 @@ font-size: 18px; } -.toolbar-btn svg { - width: 18px; - height: 18px; -} - diff --git a/frontend/src/pages/sub/SubPage.tsx b/frontend/src/pages/sub/SubPage.tsx index 82162aed..ebea13fd 100644 --- a/frontend/src/pages/sub/SubPage.tsx +++ b/frontend/src/pages/sub/SubPage.tsx @@ -21,6 +21,9 @@ import { AppleOutlined, CopyOutlined, DownOutlined, + MoonFilled, + MoonOutlined, + SunOutlined, TranslationOutlined, } from '@ant-design/icons'; @@ -219,21 +222,7 @@ export default function SubPage() { [], ); - const themeIcon = !isDark ? ( - - ) : !isUltra ? ( - - ) : ( - - ); + const themeIcon = !isDark ? : !isUltra ? : ; const cardTitle = ( @@ -250,10 +239,9 @@ export default function SubPage() { className="toolbar-btn" aria-label={t('menu.theme')} title={t('menu.theme')} + icon={themeIcon} onClick={cycleTheme} - > - {themeIcon} - + />