Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Assign HTML type to input field button

Joshen Limcd3d124e2330
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
index 9bf2c7a8757..3a8daa3c6fc 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
@@ -112,6 +112,7 @@ const InputField: FC<Props> = ({
actions={
<Button
type="default"
+ htmlType="button"
onClick={() => onEditJson({ column: field.name, jsonString: field.value })}
icon={<IconLink />}
>
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/JsonEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/JsonEditor.tsx
index 965ce2d71d3..2298bc6cddb 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/JsonEditor.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/JsonEditor.tsx
@@ -64,7 +64,7 @@ const JsonEdit: FC<JsonEditProps> = ({ column, jsonString, visible, closePanel,
onClickOption={onToggleClick}
/>
- <div className="flex-auto flex flex-col mt-4 space-y-2">
+ <div className="mt-4 flex flex-auto flex-col space-y-2">
{view === 'edit' ? (
<Editor column={column} value={jsonStr} onChange={onInputChange} />
) : (
@@ -89,7 +89,7 @@ const Editor: FC<EditorProps> = ({ column, value, onChange }) => {
<>
<Typography.Title level={4}>Edit JSON Field: {column}</Typography.Title>
- <div className="w-full h-96 flex-grow border dark:border-dark">
+ <div className="dark:border-dark h-96 w-full flex-grow border">
<JsonEditor onInputChange={onChange} defaultValue={value} />
</div>
</>
diff --git a/studio/pages/project/[ref]/editor/[id].tsx b/studio/pages/project/[ref]/editor/[id].tsx
index 805e7407ae2..7e1375b3f1b 100644
--- a/studio/pages/project/[ref]/editor/[id].tsx
+++ b/studio/pages/project/[ref]/editor/[id].tsx
@@ -173,7 +173,7 @@ const TableEditorPage: NextPage = () => {
header={`Confirm deletion of column "${selectedColumnToDelete?.name}"`}
children={
<Modal.Content>
- <p className="py-4 text-sm text-scale-1100">
+ <p className="text-scale-1100 py-4 text-sm">
Are you sure you want to delete the selected column? This action cannot be undone.
</p>
</Modal.Content>
@@ -189,7 +189,7 @@ const TableEditorPage: NextPage = () => {
header={`Confirm deletion of table "${selectedTableToDelete?.name}"`}
children={
<Modal.Content>
- <p className="py-4 text-sm text-scale-1100">
+ <p className="text-scale-1100 py-4 text-sm">
Are you sure you want to delete the selected table? This action cannot be undone.
</p>
</Modal.Content>