fix(AI,Web): Optimize the experience

This commit is contained in:
ShiYu
2025-06-07 10:00:08 +08:00
parent 38efca8bc0
commit bbf4e30847
3 changed files with 28 additions and 14 deletions

View File

@@ -13,7 +13,7 @@ import { Link, useNavigate, useLocation } from 'react-router';
import { useAuth } from '../../auth/AuthContext';
import { getMainRoutes, getAdminRoutes, type RouteConfig } from '../../routes';
import UserAvatar from '../../components/UserAvatar';
import { UserRole } from '../../api/types';
import { UserRole } from '../../api';
import SearchDialog from '../../components/search/SearchDialog';
import useIsMobile from '../../hooks/useIsMobile';

View File

@@ -181,7 +181,7 @@ const Sidebar: React.FC<SidebarProps> = ({ collapsed, isMobile = false, onClose,
height: isMobile ? '56px' : '64px',
display: 'flex',
alignItems: 'center',
justifyContent: collapsed ? 'center' : 'flex-start',
justifyContent: 'center',
padding: collapsed ? '0' : '0 20px',
color: '#001529',
fontWeight: 'bold',