The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): guard panel collapse/resize on narrow viewports (#48098)
Ali Waseem846706bc504d
diff --git a/apps/studio/components/layouts/DefaultLayout.tsx b/apps/studio/components/layouts/DefaultLayout.tsxindex 9b4c23f424a..2f29bf4016a 100644--- a/apps/studio/components/layouts/DefaultLayout.tsx+++ b/apps/studio/components/layouts/DefaultLayout.tsx@@ -72,13 +72,13 @@ export const DefaultLayout = ({}, [])useEffect(() => {- if (!isMounted || !panelRef.current || !activeSidebar) return+ if (!isMounted || !panelRef.current || !activeSidebar || isMobile) returnif (isMaximised) {panelRef.current.collapse()} else {panelRef.current.resize(`${contentMaxSizePercentage}%`)}- }, [isMounted, isMaximised, panelRef, activeSidebar])+ }, [isMounted, isMaximised, panelRef, activeSidebar, isMobile])// This is required to prevent layout shift when rendering resizable panels (they initially render at 50%, then shift// to whatever is specified).