Skip to content

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

Cap maxZoom to 1.5 for better presentation and zooming experience

Kamil Ogórek0ea05de9e10a
diff --git a/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx b/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
index b89a6675700..9124ae89f4e 100644
--- a/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
+++ b/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
@@ -298,8 +298,13 @@ const TablesGraph = ({ tables }: { tables: PostgresTable[] }) => {
}}
nodeTypes={nodeTypes}
fitView
+ maxZoom={1.5}
proOptions={{
- hideAttribution: true,
+ /**
+ * TODO: Sponsor Reactflow before using it in production! 😇
+ * https://pro.reactflow.dev/
+ */
+ hideAttribution: false,
}}
>
<Background gap={16} color={backgroundPatternColor} variant={BackgroundVariant.Lines} />
diff --git a/studio/pages/project/[ref]/database/schemas.tsx b/studio/pages/project/[ref]/database/schemas.tsx
index 3e36f1b7a39..1f7058bd3dc 100644
--- a/studio/pages/project/[ref]/database/schemas.tsx
+++ b/studio/pages/project/[ref]/database/schemas.tsx
@@ -8,12 +8,6 @@ import { useStore } from 'hooks'
import { NextPageWithLayout } from 'types'
import { IconLock, Listbox } from 'ui'
-/**
- * TODO: Sponsor Reactflow before using it in production! 😇
- *
- * https://pro.reactflow.dev/
- */
-
const SchemasPage: NextPageWithLayout = () => {
const { meta } = useStore()
const schemas = meta.schemas.list()