@@ -151,42 +151,42 @@ export function ModelProvidersSettings() {
151151 </ Button >
152152 </ div >
153153
154- < div className = "space-y-4" >
154+ < div className = "space-y-4 mb-10 " >
155155 { loading ? (
156156 < div className = "flex justify-center py-8" >
157157 < Loader2 className = "h-8 w-8 animate-spin text-muted-foreground" />
158158 </ div >
159159 ) : (
160160 providers . map ( ( provider ) => (
161- < Card key = { provider . id } className = "relative group hover:shadow-md transition-shadow " >
162- < CardHeader className = "pb-3" >
163- < CardTitle className = "text-base flex justify-between items-center" >
164- { provider . name }
165- < span className = "text-xs font-normal text-muted-foreground px-2 py-1 bg-muted rounded-full " >
161+ < Card key = { provider . id } className = "relative group hover:shadow-sm transition-all hover:border-primary/20 py-0 " >
162+ < div className = "p-4 pb-3" >
163+ < div className = "flex justify-between items-center mb-2 " >
164+ < h4 className = "text-sm font-semibold" > { provider . name } </ h4 >
165+ < span className = "text-xs font-medium text-muted-foreground px-2 py-0.5 bg-muted rounded-md " >
166166 { provider . type }
167167 </ span >
168- </ CardTitle >
169- </ CardHeader >
170- < CardContent >
171- < div className = "text-sm text-muted-foreground truncate" >
172- BaseURL: { provider . baseUrl || "Default" }
173168 </ div >
174- < div className = "text-sm text-muted-foreground truncate" >
175- API Key: ••••••••
169+ < div className = "space-y-1 text-xs text-muted-foreground" >
170+ < div className = "truncate" >
171+ < span className = "font-medium" > BaseURL:</ span > { provider . baseUrl || "Default" }
172+ </ div >
173+ < div className = "truncate" >
174+ < span className = "font-medium" > API Key:</ span > ••••••••
175+ </ div >
176176 </ div >
177177
178- < div className = "absolute bottom-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity flex gap-1 bg-background/80 rounded-md " >
179- < Button variant = "ghost" size = "icon" className = "h-8 w-8 " onClick = { ( ) => handleListModels ( provider . id ) } >
180- < List className = "h-4 w-4 " />
178+ < div className = "absolute bottom-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity flex gap-0.5 " >
179+ < Button variant = "ghost" size = "icon" className = "h-7 w-7 " onClick = { ( ) => handleListModels ( provider . id ) } >
180+ < List className = "h-3.5 w-3.5 " />
181181 </ Button >
182- < Button variant = "ghost" size = "icon" className = "h-8 w-8 " onClick = { ( ) => handleOpenDialog ( provider ) } >
183- < Pencil className = "h-4 w-4 " />
182+ < Button variant = "ghost" size = "icon" className = "h-7 w-7 " onClick = { ( ) => handleOpenDialog ( provider ) } >
183+ < Pencil className = "h-3.5 w-3.5 " />
184184 </ Button >
185- < Button variant = "ghost" size = "icon" className = "h-8 w-8 text-destructive" onClick = { ( ) => handleDelete ( provider . id ) } >
186- < Trash2 className = "h-4 w-4 " />
185+ < Button variant = "ghost" size = "icon" className = "h-7 w-7 text-destructive" onClick = { ( ) => handleDelete ( provider . id ) } >
186+ < Trash2 className = "h-3.5 w-3.5 " />
187187 </ Button >
188188 </ div >
189- </ CardContent >
189+ </ div >
190190 </ Card >
191191 ) )
192192 ) }
0 commit comments