Skip to content

Commit 9a1c350

Browse files
committed
fix: adjust layout styles in search and top nav in dashboard page
1 parent a97248f commit 9a1c350

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/layout/top-nav.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ type TopNavProps = React.HTMLAttributes<HTMLElement> & {
2121
export function TopNav({ className, links, ...props }: TopNavProps) {
2222
return (
2323
<>
24-
<div className='md:hidden'>
24+
<div className='lg:hidden'>
2525
<DropdownMenu modal={false}>
2626
<DropdownMenuTrigger asChild>
27-
<Button size='icon' variant='outline'>
27+
<Button size='icon' variant='outline' className='md:size-7'>
2828
<Menu />
2929
</Button>
3030
</DropdownMenuTrigger>
@@ -46,7 +46,7 @@ export function TopNav({ className, links, ...props }: TopNavProps) {
4646

4747
<nav
4848
className={cn(
49-
'hidden items-center space-x-4 md:flex lg:space-x-6',
49+
'hidden items-center space-x-4 lg:flex lg:space-x-4 xl:space-x-6',
5050
className
5151
)}
5252
{...props}

src/components/search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function Search({
1818
<Button
1919
variant='outline'
2020
className={cn(
21-
'bg-muted/25 group text-muted-foreground hover:bg-accent relative h-8 w-full flex-1 justify-start rounded-md text-sm font-normal shadow-none sm:w-40 sm:pe-12 md:flex-none lg:w-56 xl:w-64',
21+
'bg-muted/25 group text-muted-foreground hover:bg-accent relative h-8 w-full flex-1 justify-start rounded-md text-sm font-normal shadow-none sm:w-40 sm:pe-12 md:flex-none lg:w-52 xl:w-64',
2222
className
2323
)}
2424
onClick={() => setOpen(true)}

0 commit comments

Comments
 (0)