Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Commit 1bda05b

Browse files
committed
fix: resizer spans whole panel
1 parent 804cad5 commit 1bda05b

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/index.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,20 @@ export const ReactQueryDevtoolsPanel = React.forwardRef(
335335
return (
336336
<ThemeProvider theme={theme}>
337337
<Panel ref={ref} className="ReactQueryDevtoolsPanel" {...panelProps}>
338+
<div
339+
style={{
340+
position: 'absolute',
341+
left: 0,
342+
top: 0,
343+
width: '100%',
344+
height: '4px',
345+
marginBottom: '-4px',
346+
cursor: 'row-resize',
347+
zIndex: 100000,
348+
}}
349+
onMouseDown={handleDragStart}
350+
onMouseUp={handleDragEnd}
351+
></div>
338352
<div
339353
style={{
340354
flex: '1 1 500px',
@@ -346,18 +360,6 @@ export const ReactQueryDevtoolsPanel = React.forwardRef(
346360
flexDirection: 'column',
347361
}}
348362
>
349-
<div
350-
style={{
351-
left: 0,
352-
width: '100%',
353-
height: '4px',
354-
marginBottom: '-4px',
355-
cursor: 'row-resize',
356-
zIndex: 100000,
357-
}}
358-
onMouseDown={handleDragStart}
359-
onMouseUp={handleDragEnd}
360-
></div>
361363
<div
362364
style={{
363365
padding: '.5rem',

0 commit comments

Comments
 (0)