Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Minor UI improvements in databases (#70)

Hakan Shehu39901d38985e
diff --git a/packages/ui/src/components/databases/fields/field-type-select.tsx b/packages/ui/src/components/databases/fields/field-type-select.tsx
index 33fdb91f..1ed5fdc7 100644
--- a/packages/ui/src/components/databases/fields/field-type-select.tsx
+++ b/packages/ui/src/components/databases/fields/field-type-select.tsx
@@ -130,7 +130,10 @@ export const FieldTypeSelect = ({ type, onChange }: FieldTypeSelectProps) => {
}}
>
<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>
<Check
className={cn(
diff --git a/packages/ui/src/components/records/values/record-url-value.tsx b/packages/ui/src/components/records/values/record-url-value.tsx
index 861e43c2..dcf7d0f5 100644
--- a/packages/ui/src/components/records/values/record-url-value.tsx
+++ b/packages/ui/src/components/records/values/record-url-value.tsx
@@ -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>
<HoverCardContent
diff --git a/packages/ui/src/components/ui/smart-number-input.tsx b/packages/ui/src/components/ui/smart-number-input.tsx
index 3ae150c1..006d9a76 100644
--- a/packages/ui/src/components/ui/smart-number-input.tsx
+++ b/packages/ui/src/components/ui/smart-number-input.tsx
@@ -88,7 +88,7 @@ const SmartNumberInput = React.forwardRef<
<input
type="number"
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
)}
ref={ref}
diff --git a/packages/ui/src/components/ui/smart-text-input.tsx b/packages/ui/src/components/ui/smart-text-input.tsx
index e7158df2..f349c386 100644
--- a/packages/ui/src/components/ui/smart-text-input.tsx
+++ b/packages/ui/src/components/ui/smart-text-input.tsx
@@ -64,7 +64,7 @@ const SmartTextInput = React.forwardRef<HTMLInputElement, SmartTextInputProps>(
<input
type="text"
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
)}
ref={ref}