The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix ReferenceRowViewer padding
Joshen Lim67986923fee0
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ReferenceRowViewer.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ReferenceRowViewer.tsxindex 60e87524340..f36f4ab32d8 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ReferenceRowViewer.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ReferenceRowViewer.tsx@@ -34,9 +34,7 @@ const ReferenceRowViewer: FC<Props> = ({ visible, referenceRow, closePanel }) =><SidePanelvisible={visible}size="large"- align="right"- // @ts-ignore- title={+ header={<div>Viewing reference row from{' '}<Typography.Text code>@@ -48,30 +46,32 @@ const ReferenceRowViewer: FC<Props> = ({ visible, referenceRow, closePanel }) =>onCancel={closePanel}customFooter={<ActionBar backButtonLabel="Close" closePanel={closePanel} />}>- {loading ? (- <div className="flex flex-col items-center justify-center space-y-2 h-full">- <Typography>- <IconLoader className="animate-spin" />- </Typography>- <Typography.Text className="opacity-50">Loading reference row</Typography.Text>- </div>- ) : !row ? (- <div className="flex flex-col items-center justify-center space-y-2 h-full">- <Typography>- <IconXCircle />- </Typography>- <Typography.Text className="opacity-50">- Unable to find the corresponding row in {foreignKey?.target_table_schema}.- {foreignKey?.target_table_name}- </Typography.Text>- </div>- ) : (- <Space direction="vertical" size={6} style={{ width: '100%' }}>- {rowFields.map((field: RowField) => {- return <InputField key={field.id} field={field} isEditable={false} errors={{}} />- })}- </Space>- )}+ <SidePanel.Content>+ {loading ? (+ <div className="flex flex-col items-center justify-center space-y-2 h-full">+ <Typography>+ <IconLoader className="animate-spin" />+ </Typography>+ <Typography.Text className="opacity-50">Loading reference row</Typography.Text>+ </div>+ ) : !row ? (+ <div className="flex flex-col items-center justify-center space-y-2 h-full">+ <Typography>+ <IconXCircle />+ </Typography>+ <Typography.Text className="opacity-50">+ Unable to find the corresponding row in {foreignKey?.target_table_schema}.+ {foreignKey?.target_table_name}+ </Typography.Text>+ </div>+ ) : (+ <div className="space-y-6">+ {rowFields.map((field: RowField) => {+ return <InputField key={field.id} field={field} isEditable={false} errors={{}} />+ })}+ </div>+ )}+ </SidePanel.Content></SidePanel>)}diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsxindex 4af9a0dffef..854d3183364 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx@@ -1,6 +1,6 @@import { FC, useEffect, useState } from 'react'import { isUndefined, partition, isEmpty } from 'lodash'-import { Divider, SidePanel, Space, Typography } from '@supabase/ui'+import { SidePanel } from '@supabase/ui'import { Dictionary, Query } from '@supabase/grid'import { PostgresTable } from '@supabase/postgres-meta'diff --git a/studio/pages/account/me.tsx b/studio/pages/account/me.tsxindex 639b2cc3f94..cd3e9c43465 100644--- a/studio/pages/account/me.tsx+++ b/studio/pages/account/me.tsx@@ -1,6 +1,6 @@import React from 'react'import { observer } from 'mobx-react-lite'-import { IconMoon, IconSun, Typography, Input, Listbox } from '@supabase/ui'+import { IconMoon, IconSun, Typography, Input, Listbox, IconTrash } from '@supabase/ui'import { useProfile, useStore, withAuth } from 'hooks'import { post } from 'lib/common/fetch'@@ -137,16 +137,22 @@ const ThemeSettings = observer(() => {style={{ width: '50%' }}icon={ui.themeOption === 'light' ? (- <IconSun />+ <IconTrash />) : ui.themeOption === 'dark' ? (<IconMoon />) : undefined}onChange={(themeOption: any) => ui.onThemeOptionChange(themeOption)}>- <Listbox.Option label='System default' value="system">System default</Listbox.Option>- <Listbox.Option label='Dark' value="dark">Dark</Listbox.Option>- <Listbox.Option label='Light' value="light">Light</Listbox.Option>+ <Listbox.Option label="System default" value="system">+ System default+ </Listbox.Option>+ <Listbox.Option label="Dark" value="dark">+ Dark+ </Listbox.Option>+ <Listbox.Option label="Light" value="light">+ Light+ </Listbox.Option></Listbox></Panel.Content></Panel>