This commit is contained in:
Kirill
2026-05-26 13:03:20 +05:00
parent e93fc7a972
commit dae23599af
4 changed files with 13 additions and 3 deletions
+6 -1
View File
@@ -92,7 +92,12 @@ export const AppHeader = React.memo(function AppHeader() {
transition: 'box-shadow 0.2s ease, background-color 0.2s ease', transition: 'box-shadow 0.2s ease, background-color 0.2s ease',
}} }}
> >
<Toolbar> <Toolbar
sx={{
'& .MuiButton-text:hover': { bgcolor: 'rgba(255,255,255,0.12)' },
'& .MuiIconButton-root:hover': { bgcolor: 'rgba(255,255,255,0.15)' },
}}
>
{isMobile && ( {isMobile && (
<IconButton <IconButton
color="inherit" color="inherit"
@@ -33,7 +33,12 @@ export function UserMenu({ user, isAdmin = false, onNavigate, onLogout }: Props)
return ( return (
<> <>
<IconButton color="inherit" onClick={openMenu} sx={{ ml: 1 }} aria-label="Пользователь"> <IconButton
color="inherit"
onClick={user ? openMenu : () => go('/auth')}
sx={{ ml: 1 }}
aria-label="Пользователь"
>
{user ? ( {user ? (
<UserAvatar userId={user.id} avatarUrl={user.avatar} avatarStyle={user.avatarStyle} size={28} /> <UserAvatar userId={user.id} avatarUrl={user.avatar} avatarStyle={user.avatarStyle} size={28} />
) : ( ) : (
@@ -12,7 +12,7 @@ type Props = {
const SCHEMES: { key: ColorScheme; color: string; label: string; icon: React.ReactNode }[] = [ const SCHEMES: { key: ColorScheme; color: string; label: string; icon: React.ReactNode }[] = [
{ key: 'craft', color: '#546E7A', label: 'Крафт', icon: <Hammer size={16} /> }, { key: 'craft', color: '#546E7A', label: 'Крафт', icon: <Hammer size={16} /> },
{ key: 'forest', color: '#2E8B57', label: 'Лес', icon: <Trees size={16} /> }, { key: 'forest', color: '#2E8B57', label: 'Лес', icon: <Trees size={16} /> },
{ key: 'ocean', color: '#20B2AA', label: 'Океан', icon: <WavesHorizontal size={16} /> }, { key: 'ocean', color: '#0E8A82', label: 'Океан', icon: <WavesHorizontal size={16} /> },
{ key: 'berry', color: '#8A2BE2', label: 'Ягоды', icon: <Cherry size={16} /> }, { key: 'berry', color: '#8A2BE2', label: 'Ягоды', icon: <Cherry size={16} /> },
] ]
Binary file not shown.