feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -17,10 +17,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { Globe as ActionGlobe } from '@/components/common/icons/ActionIcons';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Button as AntButton } from 'antd';
|
||||
import { Dropdown } from '@/components/ui';
|
||||
import { Globe } from 'lucide-react';
|
||||
import { CN, GB, JP, KR, TH, VN } from 'country-flag-icons/react/3x2';
|
||||
import { normalizeLanguage } from '../../../i18n/language';
|
||||
import { orderEnabledLanguages } from '../../../i18n/catalog';
|
||||
@@ -80,7 +80,7 @@ const LanguageSelector = ({ currentLang, onLanguageChange, t }) => {
|
||||
>
|
||||
<AntButton
|
||||
type='text'
|
||||
icon={<Globe size={16} strokeWidth={1.5} aria-hidden />}
|
||||
icon={<ActionGlobe size={16} strokeWidth={1.5} aria-hidden />}
|
||||
aria-label={t('common.changeLanguage')}
|
||||
className='ui-header-icon-action'
|
||||
/>
|
||||
|
||||
@@ -17,10 +17,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { Compass as ActionCompass } from '@/components/common/icons/ActionIcons';
|
||||
import React, { useState } from 'react';
|
||||
import { useLocation, useNavigate } from 'react-router-dom';
|
||||
import { Button, Dropdown } from '@/components/ui';
|
||||
import { Compass, ExternalLink } from 'lucide-react';
|
||||
import { ExternalLink } from 'lucide-react';
|
||||
import { isNavigationPathActive } from '../../console/consoleRoutes';
|
||||
|
||||
/**
|
||||
@@ -138,7 +139,7 @@ const MobileNavMenu = ({ mainNavLinks, userState, t }) => {
|
||||
aria-label={t('主导航')}
|
||||
aria-haspopup='menu'
|
||||
aria-expanded={visible}
|
||||
icon={<Compass size={16} />}
|
||||
icon={<ActionCompass size={16} />}
|
||||
className='!ml-1 !px-2 !h-8 max-w-[9rem] !rounded-xl !text-current hover:!bg-brand/10 dark:hover:!bg-brand/15 hover:!text-brand-deep dark:hover:!text-brand-from !transition-all !duration-200 active:!scale-95 [&_.ant-btn-content]:min-w-0'
|
||||
>
|
||||
<span className='ml-1 text-[13px] font-semibold truncate'>
|
||||
|
||||
@@ -17,9 +17,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { Volume1 as ActionVolume1 } from '@/components/common/icons/ActionIcons';
|
||||
import React from 'react';
|
||||
import { Badge, Button, Tooltip } from 'antd';
|
||||
import { Volume1 } from 'lucide-react';
|
||||
|
||||
// 系统公告入口:34px text 按钮、16px 喇叭图标。
|
||||
// 显隐(rightActions.notifications)、点击(打开 NoticeModal)与未读数均沿用原逻辑。
|
||||
@@ -30,7 +30,7 @@ const NotificationButton = ({ unreadCount, onNoticeOpen, t }) => (
|
||||
type='text'
|
||||
className='ui-header-icon-action'
|
||||
aria-label={t('系统公告')}
|
||||
icon={<Volume1 size={16} strokeWidth={1.5} aria-hidden />}
|
||||
icon={<ActionVolume1 size={16} strokeWidth={1.5} aria-hidden />}
|
||||
onClick={onNoticeOpen}
|
||||
/>
|
||||
</Badge>
|
||||
|
||||
@@ -19,7 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
|
||||
import React from 'react';
|
||||
import { Button, Tooltip } from 'antd';
|
||||
import { Moon, Sun } from 'lucide-react';
|
||||
import { Moon, Sun } from '../../common/icons/ActionIcons';
|
||||
import { useActualTheme } from '../../../context/Theme';
|
||||
|
||||
const ThemeToggle = ({ onThemeToggle, t }) => {
|
||||
|
||||
@@ -17,11 +17,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { ChevronDown as ActionChevronDown } from '@/components/common/icons/ActionIcons';
|
||||
import React, { useState } from 'react';
|
||||
import { Link, useLocation } from 'react-router-dom';
|
||||
import { Avatar, Button as AntButton, Dropdown as AntDropdown } from 'antd';
|
||||
import { Button } from '@/components/ui';
|
||||
import { ChevronDown, UserRound, KeyRound, LogOut } from 'lucide-react';
|
||||
import { UserRound, KeyRound, LogOut } from 'lucide-react';
|
||||
import { getUserAvatarUrl, isAuthPagePath } from '../../../helpers';
|
||||
import SkeletonWrapper from '../components/SkeletonWrapper';
|
||||
import { isHeaderModuleEnabled } from '../../../constants/headerNavModules';
|
||||
@@ -183,7 +184,7 @@ const UserArea = ({
|
||||
{avatarInitial}
|
||||
</Avatar>
|
||||
<span className='ui-header-account-name'>{displayName}</span>
|
||||
<ChevronDown
|
||||
<ActionChevronDown
|
||||
size={10}
|
||||
strokeWidth={1.5}
|
||||
aria-hidden
|
||||
|
||||
Reference in New Issue
Block a user