From 758c4572d1ab7614ccc39c2928c53334cbd25ea3 Mon Sep 17 00:00:00 2001 From: Ivan Vasilov Date: Wed, 3 Jan 2024 16:24:41 +0100 Subject: [PATCH] fix: Fix the drag resizing in the GraphiQL (#20130) * Set a min width for the left panel so that it doesn't get squished when the documentation panel is expanded. * When the doc panel is closed via dragging, disable the plugin icon. --- apps/studio/components/interfaces/GraphQL/GraphiQL.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) => {