mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
More minor fixes
This commit is contained in:
1 parent
6ee5f9ccf6
commit
85bf421d31
4 files changed
+6
-8
No files matched your search
+1
-3
@@ -199,9 +199,7 @@ const ColumnEditor: FC<Props> = ({
|
||||
}
|
||||
onInteractOutside={(event) => {
|
||||
const isToast = (event.target as Element)?.closest('#toast')
|
||||
if (isToast) {
|
||||
event.preventDefault()
|
||||
}
|
||||
if (isToast) event.preventDefault()
|
||||
}}
|
||||
>
|
||||
<FormSection header={<FormSectionLabel className="lg:!col-span-4">General</FormSectionLabel>}>
|
||||
|
||||
+2
-2
@@ -87,14 +87,14 @@ const ForeignRowSelector = ({
|
||||
size="large"
|
||||
header={
|
||||
<div>
|
||||
Selecting a record to reference from{' '}
|
||||
Select a record to reference from{' '}
|
||||
<code className="font-mono text-sm">
|
||||
{schemaName}.{tableName}
|
||||
</code>
|
||||
</div>
|
||||
}
|
||||
onCancel={closePanel}
|
||||
customFooter={<ActionBar hideApply backButtonLabel="Close" closePanel={closePanel} />}
|
||||
customFooter={<ActionBar hideApply backButtonLabel="Cancel" closePanel={closePanel} />}
|
||||
>
|
||||
<SidePanel.Content className="h-full !px-0">
|
||||
<div className="h-full">
|
||||
|
||||
+3
-2
@@ -33,15 +33,16 @@ const columnRender = (name: string, isPrimaryKey = false) => {
|
||||
</Tooltip.Root>
|
||||
)}
|
||||
|
||||
<span className="font-mono">{name}</span>
|
||||
<span className="sb-grid-column-header__inner__name">{name}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
const formatter = (column: string, row: any) => {
|
||||
const formattedValue = typeof row[column] === 'object' ? JSON.stringify(row[column]) : row[column]
|
||||
return (
|
||||
<div className="group sb-grid-select-cell__formatter overflow-hidden">
|
||||
<span className="font-mono text-xs truncate">{JSON.stringify(row[column])}</span>
|
||||
<span className="text-sm truncate">{formattedValue}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -201,7 +201,6 @@ const RowEditor = ({
|
||||
</form>
|
||||
|
||||
<ForeignRowSelector
|
||||
key={`foreign-row-selector-${referenceRow?.name}`}
|
||||
visible={isSelectingForeignKey}
|
||||
referenceRow={referenceRow}
|
||||
onSelect={onSelectForeignRowValue}
|
||||
|
||||
Reference in new issue
Block a user