From 67aa7b726826d9691bbc9ee4ae6a82bb7e8713fa Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Fri, 2 Feb 2024 12:41:37 -0800 Subject: [PATCH] Split layouts and things --- src-web/components/GraphQLEditor.tsx | 31 ++--- src-web/components/GrpcConnectionLayout.tsx | 122 ++++++++++---------- src-web/components/HttpRequestLayout.tsx | 2 + src-web/components/ResizeHandle.tsx | 6 +- src-web/components/core/Button.tsx | 2 +- src-web/components/core/Separator.tsx | 3 +- src-web/components/core/SplitLayout.tsx | 50 +++++--- src-web/hooks/useGrpc.ts | 8 +- 8 files changed, 126 insertions(+), 98 deletions(-) diff --git a/src-web/components/GraphQLEditor.tsx b/src-web/components/GraphQLEditor.tsx index 6f17dda8..2b08f6cd 100644 --- a/src-web/components/GraphQLEditor.tsx +++ b/src-web/components/GraphQLEditor.tsx @@ -72,7 +72,7 @@ export function GraphQLEditor({ defaultValue, onChange, baseRequest, ...extraEdi const dialog = useDialog(); return ( -
+
- -

Variables

- +
+ + Variables + + +
); } diff --git a/src-web/components/GrpcConnectionLayout.tsx b/src-web/components/GrpcConnectionLayout.tsx index ce9111a2..72af6e18 100644 --- a/src-web/components/GrpcConnectionLayout.tsx +++ b/src-web/components/GrpcConnectionLayout.tsx @@ -154,6 +154,8 @@ export function GrpcConnectionLayout({ style }: Props) { return ( ( @@ -188,7 +190,10 @@ export function GrpcConnectionLayout({ style }: Props) { >