Skip to content

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

fix style for long text label

Bo Luc89795eb8459
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx
index 6bf4daddea2..24b55143311 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx
@@ -132,9 +132,9 @@ const ColumnForeignKeyAdded: FC<{
<span className="text-green-900">added</span>:
</span>
<div className="flex items-center space-x-2 text-scale-1200">
- <span className="text-code">{columnName}</span>
+ <span className="text-code max-w-xs truncate">{columnName}</span>
<IconArrowRight size={14} strokeWidth={2} />
- <span className="text-code">
+ <span className="text-code max-w-xs truncate">
{foreignKey?.target_table_schema}.{foreignKey?.target_table_name}.
{foreignKey?.target_column_name}
</span>
diff --git a/studio/styles/main.scss b/studio/styles/main.scss
index 88d9a1aaa7d..0ca24a1d0b5 100644
--- a/studio/styles/main.scss
+++ b/studio/styles/main.scss
@@ -188,3 +188,7 @@ div[data-radix-portal]:not(.portal--toast) {
div.fixed.inset-0 {
z-index: 11 !important;
}
+
+label {
+ @apply truncate;
+}