11import { datasetSchemaTypeGroups } from '@/config' ;
22import { cn } from '@/lib/utils' ;
33import { SelectLabel } from '@radix-ui/react-select' ;
4- import { ChevronDown , SlidersHorizontal , X } from 'lucide-react' ;
4+ import { ChevronDown , Plus , SlidersHorizontal , X } from 'lucide-react' ;
55import { useState } from 'react' ;
66import { Button } from '@/components/ui/button' ;
77import { Input } from '@/components/ui/input' ;
@@ -100,8 +100,11 @@ export function SchemaSearch({
100100 } ) }
101101 </ div >
102102 </ div >
103- < div className = "mt-6 mb-6 flex translate-y-1 gap-4" >
103+ < div className = "mt-6 mb-6 flex translate-y-1 flex-col items-center gap-4 sm:flex-row " >
104104 < Input
105+ type = "text"
106+ id = "schema-path"
107+ autoComplete = "off"
105108 value = { inputPathValue }
106109 onChange = { ( e ) => setInputPathValue ( e . target . value ) }
107110 className = { cn (
@@ -111,7 +114,7 @@ export function SchemaSearch({
111114 />
112115
113116 < Select value = { selectedType } onValueChange = { setSelectedType } >
114- < SelectTrigger className = "bg-muted border-secondary w-full max-w-1/3 rounded-2xl px-4 py-6 text-sm text-white" >
117+ < SelectTrigger className = "bg-muted border-secondary w-full rounded-2xl px-4 py-6 text-sm text-white sm:max-w-1/3 " >
115118 < SelectValue placeholder = "Select type" />
116119 </ SelectTrigger >
117120 < SelectContent className = "bg-muted border-secondary overflow-visible p-6" >
@@ -137,10 +140,12 @@ export function SchemaSearch({
137140 </ SelectContent >
138141 </ Select >
139142 < Button
143+ size = "lg"
140144 onClick = { handleAdd }
141145 disabled = { ! inputPathValue . trim ( ) || ! selectedType }
142146 >
143147 Add filter
148+ < Plus size = { 20 } />
144149 </ Button >
145150 </ div >
146151 </ div >
0 commit comments