Browse Source

fix: stretch search bar only in mobile

satnaing 1 year ago
parent
commit
d19b6631e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/search.tsx

+ 1 - 1
src/components/search.tsx

@@ -15,7 +15,7 @@ export function Search({ className = '', placeholder = 'Search' }: Props) {
     <Button
       variant='outline'
       className={cn(
-        'relative h-8 w-full flex-1 justify-start rounded-md bg-muted/25 hover:bg-muted/50 text-sm font-normal text-muted-foreground shadow-none sm:pr-12 md:w-40 lg:w-56 xl:w-64',
+        'relative h-8 w-full flex-1 md:flex-none justify-start rounded-md bg-muted/25 hover:bg-muted/50 text-sm font-normal text-muted-foreground shadow-none sm:pr-12 md:w-40 lg:w-56 xl:w-64',
         className
       )}
       onClick={() => setOpen(true)}