Skip to content

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

icon now seperate and on hover has column name

Ollie Halliday689fcf84f20b
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
index f1beab72d82..e6085c0c5ad 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
@@ -76,27 +76,29 @@ const Column: FC<Props> = ({
</Typography>
</div>
</div>
- <div className="w-[25%]">
+ <div className="w-[20%]">
<div className="flex w-[95%] items-center justify-between">
<Input
value={column.name}
size="small"
+ title={column.name}
disabled={hasImportContent}
className={`table-editor-columns-input bg-white dark:bg-transparent lg:gap-0 ${
hasImportContent ? 'opacity-50' : ''
} rounded-md`}
- actions={
- <Button
- type={!isUndefined(column.foreignKey) ? 'secondary' : 'default'}
- onClick={() => onEditRelation(column)}
- >
- <IconLink size={14} strokeWidth={!isUndefined(column.foreignKey) ? 2 : 1} />
- </Button>
- }
onChange={(event: any) => onUpdateColumn({ name: event.target.value })}
/>
</div>
</div>
+ <div className="w-[5%] pl-0.5">
+ <Button
+ type={!isUndefined(column.foreignKey) ? 'secondary' : 'default'}
+ onClick={() => onEditRelation(column)}
+ className="px-1 py-2"
+ >
+ <IconLink size={14} strokeWidth={!isUndefined(column.foreignKey) ? 2 : 1} />
+ </Button>
+ </div>
<div className="w-[25%]">
<div className="w-[95%]">
<ColumnType