File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const Search = ({ reg }: { reg?: string }) => {
2626 }
2727 const handleSearch = useDebouncedCallback ( ( term : string ) => {
2828 const params = new URLSearchParams ( searchParams )
29+
2930 if ( term ) {
3031 params . set ( 'search' , term )
3132 } else {
@@ -57,12 +58,12 @@ const Search = ({ reg }: { reg?: string }) => {
5758 ]
5859 const [ open , setOpen ] = useState ( false )
5960 return (
60- < section className = 'mt-12 flex flex-col gap-x-3 gap-y-4 lg:flex-row' >
61+ < section className = 'mt-12 flex w-full flex-col gap-x-3 gap-y-4 lg:flex-row' >
6162 < div className = 'flex w-full items-center gap-x-3 gap-y-4' >
6263 < Form { ...form } >
6364 < form
6465 onSubmit = { form . handleSubmit ( onSubmit ) }
65- className = 'w-[50%] space-y-8'
66+ className = 'w-full space-y-8 lg:w-[50%] '
6667 >
6768 < FormField
6869 control = { form . control }
You can’t perform that action at this time.
0 commit comments