adaptive fixes

This commit is contained in:
rngsurrounded
2025-03-04 03:23:21 +09:00
parent 8376acb300
commit 9e5db3d329
3 changed files with 19 additions and 8 deletions
@@ -30,13 +30,13 @@ export const Header = () => {
</Link> </Link>
<div className="flex items-center gap-4"> <div className="flex items-center gap-4">
<a <a
href="/docs/" href="/docs/"
className="text-sm font-medium text-gray-700 hover:text-gray-900 transition-colors flex items-center gap-1" className="hidden md:flex text-sm font-medium text-gray-700 hover:text-gray-900 transition-colors items-center gap-1"
> >
<FileText className="h-4 w-4" /> <FileText className="h-4 w-4" />
Материалы Материалы
</a> </a>
<DropdownMenu> <DropdownMenu>
<DropdownMenuTrigger asChild> <DropdownMenuTrigger asChild>
@@ -51,6 +51,16 @@ export const Header = () => {
<Link to="/profile"> <Link to="/profile">
<DropdownMenuItem>Аккаунт</DropdownMenuItem> <DropdownMenuItem>Аккаунт</DropdownMenuItem>
</Link> </Link>
<div className="md:hidden">
<Link to="/docs">
<DropdownMenuItem>
<FileText className="h-4 w-4 mr-2" />
Материалы
</DropdownMenuItem>
</Link>
</div>
<DropdownMenuSeparator /> <DropdownMenuSeparator />
<DropdownMenuItem <DropdownMenuItem
variant="destructive" variant="destructive"
@@ -30,6 +30,7 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
{isCleared ? ( {isCleared ? (
<Button <Button
className="font-hse-sans flex-grow"
disabled={true} disabled={true}
> >
Задача сдана! Задача сдана!
@@ -24,7 +24,7 @@ export const UserStatsSections = () => {
/> />
<UserStatBlock <UserStatBlock
value={stats.total_attempts} value={stats.total_attempts}
description="Попыток выполнено" description="Решений отправлено"
/> />
</div> </div>
) : ( ) : (