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

Commit

Permalink
fix: resizer spans whole panel
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Jul 30, 2020
1 parent 804cad5 commit 1bda05b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,20 @@ export const ReactQueryDevtoolsPanel = React.forwardRef(
return (
<ThemeProvider theme={theme}>
<Panel ref={ref} className="ReactQueryDevtoolsPanel" {...panelProps}>
<div
style={{
position: 'absolute',
left: 0,
top: 0,
width: '100%',
height: '4px',
marginBottom: '-4px',
cursor: 'row-resize',
zIndex: 100000,
}}
onMouseDown={handleDragStart}
onMouseUp={handleDragEnd}
></div>
<div
style={{
flex: '1 1 500px',
Expand All @@ -346,18 +360,6 @@ export const ReactQueryDevtoolsPanel = React.forwardRef(
flexDirection: 'column',
}}
>
<div
style={{
left: 0,
width: '100%',
height: '4px',
marginBottom: '-4px',
cursor: 'row-resize',
zIndex: 100000,
}}
onMouseDown={handleDragStart}
onMouseUp={handleDragEnd}
></div>
<div
style={{
padding: '.5rem',
Expand Down

0 comments on commit 1bda05b

Please sign in to comment.