Skip to content

Commit 67c6a18

Browse files
committed
Add scroll container for connector sidebar
1 parent ae54b8d commit 67c6a18

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

src/application/pages/connectors/$operationId.tsx

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,25 @@ export function Route() {
8686
id="details"
8787
defaultSize={25}
8888
minSize={25}
89-
className="h-full p-4 flex flex-col gap-6"
89+
className="h-full p-4 overflow-hidden"
9090
>
91-
<div className="flex flex-col gap-2">
92-
<h2 className="text-heading dark:text-heading-dark font-medium text-lg">
93-
Query
94-
</h2>
95-
<CodeBlock language="graphql" code={request.query} />
96-
</div>
97-
<div className="flex flex-col gap-2">
98-
<h2 className="text-heading dark:text-heading-dark font-medium text-lg">
99-
Variables
100-
</h2>
101-
<JSONTreeViewer
102-
hideRoot={!isEmpty(request.variables)}
103-
className="[&>li]:!pt-0"
104-
data={request.variables ?? {}}
105-
/>
91+
<div className="h-full flex flex-col gap-6 overflow-y-auto">
92+
<div className="flex flex-col gap-2">
93+
<h2 className="text-heading dark:text-heading-dark font-medium text-lg">
94+
Query
95+
</h2>
96+
<CodeBlock language="graphql" code={request.query} />
97+
</div>
98+
<div className="flex flex-col gap-2">
99+
<h2 className="text-heading dark:text-heading-dark font-medium text-lg">
100+
Variables
101+
</h2>
102+
<JSONTreeViewer
103+
hideRoot={!isEmpty(request.variables)}
104+
className="[&>li]:!pt-0"
105+
data={request.variables ?? {}}
106+
/>
107+
</div>
106108
</div>
107109
</Panel>
108110
</>

0 commit comments

Comments
 (0)