Fixes query panel resizing issue (#1841)

This commit is contained in:
Muhsin Shah C P 2022-01-20 10:13:21 +05:30 committed by GitHub
parent 0f2a658876
commit efca1f32ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,9 +149,10 @@ class Editor extends React.Component {
};
onMouseDown = () => {
this.setState({
isQueryPaneDragging: true,
});
this.state.isTopOfQueryPane &&
this.setState({
isQueryPaneDragging: true,
});
};
onMouseUp = () => {
@ -982,7 +983,6 @@ class Editor extends React.Component {
height: `calc(100% - ${this.state.queryPaneHeight}%)`,
width: !showLeftSidebar ? '85%' : '',
left: !showLeftSidebar ? '0' : '',
// transition: 'height 0.3s ease-in-out',
cursor: this.state.isQueryPaneDragging || this.state.isTopOfQueryPane ? 'row-resize' : 'default',
}}
>