The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: Sticky resource banner (#29562)
Ivan Vasilov7d9343cc05e6
diff --git a/apps/studio/components/interfaces/Reports/ReportPadding.tsx b/apps/studio/components/interfaces/Reports/ReportPadding.tsxindex 5e5f55096d9..5c566c166b1 100644--- a/apps/studio/components/interfaces/Reports/ReportPadding.tsx+++ b/apps/studio/components/interfaces/Reports/ReportPadding.tsx@@ -4,7 +4,7 @@ import { PropsWithChildren } from 'react'* Standardized padding and width layout for non-custom reports*/const ReportPadding = ({ children }: PropsWithChildren<{}>) => (- <div className="flex flex-col gap-4 px-5 py-6 mx-auto 1xl:px-28 lg:px-16 xl:px-24 2xl:px-32">+ <div className="flex flex-col gap-4 px-5 py-6 mx-auto 1xl:px-28 lg:px-16 xl:px-24 2xl:px-32 w-full">{children}</div>)diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsxindex 15a6e49d246..c391ddf68b3 100644--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx@@ -207,7 +207,7 @@ const InstanceConfigurationUI = () => {}, [isSuccessReplicas, isSuccessLoadBalancers, nodes, edges, view])return (- <>+ <div><divclassName={`h-[500px] w-full relative ${isSuccessReplicas && !isLoadingProject ? '' : 'flex items-center justify-center px-28'@@ -342,7 +342,7 @@ const InstanceConfigurationUI = () => {/><ComputeInstanceSidePanel />- </>+ </div>)}diff --git a/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx b/apps/studio/components/layouts/AuthLayout/AuthLayout.tsxindex 51e8a1e7941..d15ba14343a 100644--- a/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx+++ b/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx@@ -56,9 +56,7 @@ const AuthLayout = ({ title, children }: PropsWithChildren<AuthLayoutProps>) =>productMenu={<AuthProductMenu />}isBlocking={false}>- <main style={{ maxHeight: '100vh' }} className="flex-1 overflow-y-auto">- {children}- </main>+ {children}</ProjectLayout>)}diff --git a/apps/studio/components/layouts/DatabaseLayout/DatabaseLayout.tsx b/apps/studio/components/layouts/DatabaseLayout/DatabaseLayout.tsxindex fba643f35a8..82594b17652 100644--- a/apps/studio/components/layouts/DatabaseLayout/DatabaseLayout.tsx+++ b/apps/studio/components/layouts/DatabaseLayout/DatabaseLayout.tsx@@ -7,8 +7,6 @@ import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-eximport { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'import { useSelectedProject } from 'hooks/misc/useSelectedProject'import { withAuth } from 'hooks/misc/withAuth'-import Link from 'next/link'-import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_ } from 'ui'import ProjectLayout from '../ProjectLayout/ProjectLayout'import { generateDatabaseMenu } from './DatabaseMenu.utils'@@ -49,9 +47,7 @@ const DatabaseProductMenu = () => {const DatabaseLayout = ({ children }: PropsWithChildren<DatabaseLayoutProps>) => {return (<ProjectLayout product="Database" productMenu={<DatabaseProductMenu />} isBlocking={false}>- <main style={{ maxHeight: '100vh' }} className="flex-1 overflow-y-auto">- {children}- </main>+ {children}</ProjectLayout>)}diff --git a/apps/studio/components/layouts/FunctionsLayout/FunctionsLayout.tsx b/apps/studio/components/layouts/FunctionsLayout/FunctionsLayout.tsxindex 465e80c803f..17b66566919 100644--- a/apps/studio/components/layouts/FunctionsLayout/FunctionsLayout.tsx+++ b/apps/studio/components/layouts/FunctionsLayout/FunctionsLayout.tsx@@ -10,10 +10,10 @@ import { useEdgeFunctionQuery } from 'data/edge-functions/edge-function-query'import { useEdgeFunctionsQuery } from 'data/edge-functions/edge-functions-query'import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'import { withAuth } from 'hooks/misc/withAuth'+import { Code, ExternalLink } from 'lucide-react'import { Button } from 'ui'import FunctionsNav from '../../interfaces/Functions/FunctionsNav'import ProjectLayout from '../ProjectLayout/ProjectLayout'-import { Code, ExternalLink } from 'lucide-react'interface FunctionsLayoutProps {title?: string@@ -29,9 +29,7 @@ const FunctionsLayout = ({ title, children }: PropsWithChildren<FunctionsLayoutPif (!canReadFunctions) {return (<ProjectLayout title={title || 'Edge Functions'} product="Edge Functions">- <main style={{ maxHeight: '100vh' }} className="flex-1 overflow-y-auto">- <NoPermission isFullPage resourceText="access your project's edge functions" />- </main>+ <NoPermission isFullPage resourceText="access your project's edge functions" /></ProjectLayout>)}diff --git a/apps/studio/components/layouts/LogsLayout/LogsLayout.tsx b/apps/studio/components/layouts/LogsLayout/LogsLayout.tsxindex bed63d26c75..ebe05ead919 100644--- a/apps/studio/components/layouts/LogsLayout/LogsLayout.tsx+++ b/apps/studio/components/layouts/LogsLayout/LogsLayout.tsx@@ -16,18 +16,14 @@ const LogsLayout = ({ title, children }: PropsWithChildren<LogsLayoutProps>) =>if (!canUseLogsExplorer) {return (<ProjectLayout>- <main style={{ maxHeight: '100vh' }} className="flex-1 overflow-y-auto">- <NoPermission isFullPage resourceText="access your project's logs explorer" />- </main>+ <NoPermission isFullPage resourceText="access your project's logs explorer" /></ProjectLayout>)}return (<ProjectLayout title={title} product="Logs & Analytics" productMenu={<LogsSidebarMenuV2 />}>- <main style={{ maxHeight: '100vh' }} className="flex-1 overflow-y-auto">- {children}- </main>+ {children}</ProjectLayout>)}diff --git a/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx b/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsxindex a908a87eade..aee52a29f8c 100644--- a/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx+++ b/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx@@ -21,11 +21,11 @@ import ConnectingState from './ConnectingState'import { LayoutHeader } from './LayoutHeader'import LoadingState from './LoadingState'import NavigationBar from './NavigationBar/NavigationBar'+import { ProjectPausedState } from './PausedState/ProjectPausedState'import PauseFailedState from './PauseFailedState'import PausingState from './PausingState'import ProductMenuBar from './ProductMenuBar'import { ProjectContextProvider } from './ProjectContext'-import { ProjectPausedState } from './PausedState/ProjectPausedState'import RestartingState from './RestartingState'import RestoreFailedState from './RestoreFailedState'import RestoringState from './RestoringState'@@ -142,9 +142,9 @@ const ProjectLayout = ({<ResizableHandle withHandle disabled={resizableSidebar ? false : true} /></>)}- <ResizablePanel className="h-full">+ <ResizablePanel className="h-full flex flex-col">+ {!navLayoutV2 && !hideHeader && IS_PLATFORM && <LayoutHeader />}<main className="h-full flex flex-col flex-1 w-full overflow-x-hidden">- {!navLayoutV2 && !hideHeader && IS_PLATFORM && <LayoutHeader />}{showPausedState ? (<div className="mx-auto my-16 w-full h-full max-w-7xl flex items-center"><div className="w-full">diff --git a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsxindex dc03c33d496..cffd833fddb 100644--- a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx+++ b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx@@ -7,10 +7,10 @@ import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'import { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization'import { useSelectedProject } from 'hooks/misc/useSelectedProject'import { withAuth } from 'hooks/misc/withAuth'+import { useFlag } from 'hooks/ui/useFlag'import { IS_PLATFORM } from 'lib/constants'import ProjectLayout from '../ProjectLayout/ProjectLayout'import { generateSettingsMenu } from './SettingsMenu.utils'-import { useFlag } from 'hooks/ui/useFlag'interface SettingsLayoutProps {title?: string@@ -65,9 +65,7 @@ const SettingsLayout = ({ title, children }: PropsWithChildren<SettingsLayoutProproduct="Settings"productMenu={<ProductMenu page={page} menu={menuRoutes} />}>- <main style={{ maxHeight: '100vh' }} className="flex-1 overflow-y-auto">- {children}- </main>+ {children}</ProjectLayout>)}diff --git a/apps/studio/components/layouts/ReportsLayout/ReportsLayout.tsx b/apps/studio/components/layouts/ReportsLayout/ReportsLayout.tsxindex 67d5a1dfce2..c9cb77cc689 100644--- a/apps/studio/components/layouts/ReportsLayout/ReportsLayout.tsx+++ b/apps/studio/components/layouts/ReportsLayout/ReportsLayout.tsx@@ -11,9 +11,7 @@ interface ReportsLayoutProps {const ReportsLayout = ({ title, children }: PropsWithChildren<ReportsLayoutProps>) => {return (<ProjectLayout title={title} product="Reports" productMenu={<ReportsMenu />} isBlocking={false}>- <main style={{ maxHeight: '100vh' }} className="flex-1 overflow-y-auto">- {children}- </main>+ {children}</ProjectLayout>)}diff --git a/apps/studio/pages/project/[ref]/branches.tsx b/apps/studio/pages/project/[ref]/branches.tsxindex cd3e6b107cd..252de784cdf 100644--- a/apps/studio/pages/project/[ref]/branches.tsx+++ b/apps/studio/pages/project/[ref]/branches.tsx@@ -6,12 +6,6 @@ const BranchManagementPage: NextPageWithLayout = () => {return <BranchManagement />}-BranchManagementPage.getLayout = (page) => (- <ProjectLayoutWithAuth>- <main style={{ maxHeight: '100vh' }} className="flex-1 overflow-y-auto">- {page}- </main>- </ProjectLayoutWithAuth>-)+BranchManagementPage.getLayout = (page) => <ProjectLayoutWithAuth>{page}</ProjectLayoutWithAuth>export default BranchManagementPagediff --git a/apps/studio/pages/project/[ref]/index.tsx b/apps/studio/pages/project/[ref]/index.tsxindex a2cc5b1b70e..34669382870 100644--- a/apps/studio/pages/project/[ref]/index.tsx+++ b/apps/studio/pages/project/[ref]/index.tsx@@ -7,8 +7,8 @@ import { CLIENT_LIBRARIES, EXAMPLE_PROJECTS } from 'components/interfaces/Home/Himport ProjectUsageSection from 'components/interfaces/Home/ProjectUsageSection'import { SecurityStatus } from 'components/interfaces/Home/SecurityStatus'import ServiceStatus from 'components/interfaces/Home/ServiceStatus'-import { ProjectLayoutWithAuth } from 'components/layouts/ProjectLayout/ProjectLayout'import { ProjectPausedState } from 'components/layouts/ProjectLayout/PausedState/ProjectPausedState'+import { ProjectLayoutWithAuth } from 'components/layouts/ProjectLayout/ProjectLayout'import { ComputeBadgeWrapper } from 'components/ui/ComputeBadgeWrapper'import ProjectUpgradeFailedBanner from 'components/ui/ProjectUpgradeFailedBanner'import { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization'@@ -117,12 +117,6 @@ const Home: NextPageWithLayout = () => {)}-Home.getLayout = (page) => (- <ProjectLayoutWithAuth>- <main style={{ maxHeight: '100vh' }} className="flex-1 overflow-y-auto">- {page}- </main>- </ProjectLayoutWithAuth>-)+Home.getLayout = (page) => <ProjectLayoutWithAuth>{page}</ProjectLayoutWithAuth>export default Home