mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-21 16:21:25 +02:00
Fix resize
This commit is contained in:
@@ -62,7 +62,6 @@ export function GraphQLEditor({ defaultValue, onChange, baseRequest, ...extraEdi
|
|||||||
});
|
});
|
||||||
const req: HttpRequest = { ...baseRequest, body, id: '' };
|
const req: HttpRequest = { ...baseRequest, body, id: '' };
|
||||||
sendEphemeralRequest(req).then((response) => {
|
sendEphemeralRequest(req).then((response) => {
|
||||||
console.log('RESPONSE', response.body);
|
|
||||||
const { data } = JSON.parse(response.body);
|
const { data } = JSON.parse(response.body);
|
||||||
const schema = buildClientSchema(data);
|
const schema = buildClientSchema(data);
|
||||||
setGraphqlExtension(graphql(schema, {}));
|
setGraphqlExtension(graphql(schema, {}));
|
||||||
|
|||||||
@@ -373,8 +373,9 @@ function ResizeBar({ onResizeStart, onReset, isResizing }: ResizeBarProps) {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
aria-hidden
|
aria-hidden
|
||||||
|
draggable
|
||||||
className="group absolute z-10 -right-0.5 w-3 top-0 bottom-0 flex justify-end cursor-ew-resize"
|
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}
|
onDoubleClick={onReset}
|
||||||
>
|
>
|
||||||
{/* Show global overlay with cursor style to ensure cursor remains the same when moving quickly */}
|
{/* Show global overlay with cursor style to ensure cursor remains the same when moving quickly */}
|
||||||
|
|||||||
Reference in New Issue
Block a user