Fix resize

This commit is contained in:
Gregory Schier
2023-03-23 07:47:58 -07:00
parent ae82bdc225
commit 5ea45537d3
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,6 @@ export function GraphQLEditor({ defaultValue, onChange, baseRequest, ...extraEdi
});
const req: HttpRequest = { ...baseRequest, body, id: '' };
sendEphemeralRequest(req).then((response) => {
console.log('RESPONSE', response.body);
const { data } = JSON.parse(response.body);
const schema = buildClientSchema(data);
setGraphqlExtension(graphql(schema, {}));

View File

@@ -373,8 +373,9 @@ function ResizeBar({ onResizeStart, onReset, isResizing }: ResizeBarProps) {
return (
<div
aria-hidden
draggable
className="group absolute z-10 -right-0.5 w-3 top-0 bottom-0 flex justify-end cursor-ew-resize"
onMouseDown={onResizeStart}
onDragStart={onResizeStart}
onDoubleClick={onReset}
>
{/* Show global overlay with cursor style to ensure cursor remains the same when moving quickly */}