Skip to content

Commit

Permalink
chore: update responsive ux
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Nov 9, 2023
1 parent b53abe3 commit a53f037
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/layouts/main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ export default function Layout() {
<Drawer
content={
<div className="flex flex-col">
<div className="flex my-2 justify-around">
<div className="flex my-2 text-sm justify-around">
{links.map(({ title, path, icon, type }) => (
<Link
key={path}
to={path}
target={type === 'external' ? '_blank' : undefined}
className={clsx('items-center gap-1 px-4 py-2 rounded-full flex', {
className={clsx('items-center gap-1 p-2 rounded-full flex', {
'bg-primary text-white': location.pathname.startsWith(`/${path}`),
})}
>
Expand All @@ -85,7 +85,7 @@ export default function Layout() {
<Menu path={`/${secondPath}`} />
</div>
}
width="calc(100vw - 100px)"
width="calc(100vw - 72px)"
>
<button className="btn btn-ghost text-xl">
<BiMenu />
Expand All @@ -109,7 +109,7 @@ export default function Layout() {
key={path}
to={path}
target={type === 'external' ? '_blank' : undefined}
className={clsx('hidden items-center gap-1 px-4 py-2 rounded-full', {
className={clsx('hidden items-center gap-1 px-2 py-2 rounded-full', {
'bg-primary text-white': location.pathname.startsWith(`/${path}`),
'xs:flex': type !== 'external',
'sm:flex': type === 'external',
Expand Down

0 comments on commit a53f037

Please sign in to comment.