Skip to content

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

fix: Fix the drag resizing in the GraphiQL (#20130)

Ivan Vasilov758c4572d1ab
diff --git a/apps/studio/components/interfaces/GraphQL/GraphiQL.tsx b/apps/studio/components/interfaces/GraphQL/GraphiQL.tsx
index 074260f970a..0aa2b8bdb15 100644
--- a/apps/studio/components/interfaces/GraphQL/GraphiQL.tsx
+++ b/apps/studio/components/interfaces/GraphQL/GraphiQL.tsx
@@ -100,7 +100,7 @@ export const GraphiQLInterface = ({ theme }: GraphiQLInterfaceProps) => {
direction: 'horizontal',
initiallyHidden: pluginContext?.visiblePlugin ? undefined : 'second',
onHiddenElementChange: (resizableElement) => {
- if (resizableElement === 'first') {
+ if (resizableElement === 'second') {
pluginContext?.setVisiblePlugin(null)
}
},
@@ -207,7 +207,7 @@ export const GraphiQLInterface = ({ theme }: GraphiQLInterfaceProps) => {
<div className="graphiql-main">
<div
ref={pluginResize.firstRef}
- style={{ minWidth: 0 }}
+ style={{ minWidth: '750px' }}
className={clsx('graphiql-sessions', styles.graphiqlSessions)}
>
<div