Skip to content

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

Update Scaffold.tsx

Jonathan Summers-Muir24ed26817bb3
diff --git a/studio/components/layouts/Scaffold.tsx b/studio/components/layouts/Scaffold.tsx
index 92c695d0e85..aec55712385 100644
--- a/studio/components/layouts/Scaffold.tsx
+++ b/studio/components/layouts/Scaffold.tsx
@@ -4,6 +4,8 @@ import { cn } from 'ui'
const maxWidthClasses = 'mx-auto w-full max-w-[1600px]'
const paddingClasses = 'px-6 lg:px-14 xl:px-28 2xl:px-32'
+const maxWidthClassesColumn = 'min-w-[420px]'
+
// lg: pt - 8
const ScaffoldHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
@@ -45,6 +47,18 @@ const ScaffoldSection = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HT
}
)
+const ScaffoldColumn = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => {
+ return (
+ <div
+ ref={ref}
+ {...props}
+ className={cn('flex flex-col gap-3 py-6', maxWidthClassesColumn, className)}
+ />
+ )
+ }
+)
+
const ScaffoldSectionDetail = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
@@ -107,6 +121,7 @@ ScaffoldTitle.displayName = 'ScaffoldTitle'
ScaffoldContainer.displayName = 'ScaffoldContainer'
ScaffoldDivider.displayName = 'ScaffoldDivider'
ScaffoldSection.displayName = 'ScaffoldSection'
+ScaffoldColumn.displayName = 'ScaffoldColumn'
ScaffoldSectionDetail.displayName = 'ScaffoldSectionDetail'
ScaffoldSectionContent.displayName = 'ScaffoldSectionContent'
ScaffoldFilterAndContent.displayName = 'ScaffoldFilterAndContent'
@@ -120,6 +135,7 @@ export {
ScaffoldContainer,
ScaffoldDivider,
ScaffoldSection,
+ ScaffoldColumn,
ScaffoldSectionDetail,
ScaffoldSectionContent,
ScaffoldFilterAndContent,