Minor UI improvements in databases (#70)

This commit is contained in:
Hakan Shehu
2025-06-16 09:47:23 +02:00
committed by GitHub
parent 0d985b923a
commit 39901d3898
4 changed files with 7 additions and 4 deletions

View File

@@ -130,7 +130,10 @@ export const FieldTypeSelect = ({ type, onChange }: FieldTypeSelectProps) => {
}} }}
> >
<div className="flex w-full flex-row items-center gap-2"> <div className="flex w-full flex-row items-center gap-2">
<FieldIcon type={fieldType.type} className="size-4" /> <FieldIcon
type={fieldType.type}
className="size-4 text-foreground"
/>
<p>{fieldType.name}</p> <p>{fieldType.name}</p>
<Check <Check
className={cn( className={cn(

View File

@@ -43,7 +43,7 @@ export const RecordUrlValue = ({ field, readOnly }: RecordUrlValueProps) => {
}); });
} }
}} }}
className="flex h-full w-full cursor-pointer flex-row items-center gap-1 border-none p-0 text-sm focus-visible:cursor-text" className="flex h-full w-full cursor-pointer flex-row items-center gap-1 border-none p-0 text-sm shadow-none focus-visible:cursor-text"
/> />
</HoverCardTrigger> </HoverCardTrigger>
<HoverCardContent <HoverCardContent

View File

@@ -88,7 +88,7 @@ const SmartNumberInput = React.forwardRef<
<input <input
type="number" type="number"
className={cn( className={cn(
'flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50', 'flex h-9 w-full rounded-sm border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50',
className className
)} )}
ref={ref} ref={ref}

View File

@@ -64,7 +64,7 @@ const SmartTextInput = React.forwardRef<HTMLInputElement, SmartTextInputProps>(
<input <input
type="text" type="text"
className={cn( className={cn(
'flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50', 'flex h-9 w-full rounded-sm border border-input bg-transparent px-3 py-1 text-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50',
className className
)} )}
ref={ref} ref={ref}