Skip to content

Commit

Permalink
docs: update layout and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Nov 16, 2023
1 parent 49c610b commit 1cae420
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function MenuItem({
return (
<li>
<Link
className={clsx('pl-6 rounded active:bg-[#F7F7F7]', {
className={clsx('pl-6 rounded focus:!text-[var(--color-primary)] active:!bg-[#F7F7F7]', {
'bg-[#F7F7F7] text-[var(--color-primary)]': match,
})}
to={path}
Expand Down
14 changes: 7 additions & 7 deletions src/layouts/main/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Link, Outlet, useLocation, useMatch, useNavigate } from 'react-router-dom';
import { useEffect } from 'react';
import { BiLinkExternal } from '@react-icons/all-files/bi/BiLinkExternal';
import { BiBookOpen } from '@react-icons/all-files/bi/BiBookOpen';
import { BiCodeCurly } from '@react-icons/all-files/bi/BiCodeCurly';
import { BiBookBookmark } from '@react-icons/all-files/bi/BiBookBookmark';
import { BiCodeBlock } from '@react-icons/all-files/bi/BiCodeBlock';
import { AiOutlineGithub } from '@react-icons/all-files/ai/AiOutlineGithub';
import { HiTranslate } from '@react-icons/all-files/hi/HiTranslate';
import clsx from 'clsx';
Expand All @@ -18,12 +18,12 @@ const links = [
{
title: i18nLocale.t('guide'),
path: 'guide',
icon: <BiBookOpen />,
icon: <BiBookBookmark />,
},
{
title: i18nLocale.t('schema'),
path: 'schema',
icon: <BiCodeCurly />,
icon: <BiCodeBlock />,
},
{
title: 'LabelU-kit',
Expand Down Expand Up @@ -165,11 +165,11 @@ export default function Layout() {
</div>
</header>
<div className="flex min-h-0 overflow-auto">
<div className="hidden sm:block py-2 px-2 sm:w-[280px] max-h-[calc(100vh-56px)] overflow-auto">
<div className="hidden sm:block py-2 px-2 sm:w-[280px] max-h-[calc(100vh-64px)] overflow-auto">
<Menu path={`/${secondPath}`} />
</div>
<div className="flex min-h-0 overflow-auto justify-center flex-auto max-h-[calc(100vh-56px)]">
<div className="flex-grow overflow-auto prose prose-slate py-16 px-6">
<div className="flex min-h-0 overflow-auto justify-center flex-auto max-h-[calc(100vh-64px)] py-16 px-6">
<div className="prose">
<Outlet />
</div>
</div>
Expand Down

0 comments on commit 1cae420

Please sign in to comment.