Skip to content

Commit

Permalink
Merge pull request #3244 from ingef/fix-resize-when-tooltip-hidden
Browse files Browse the repository at this point in the history
Fix resize when tooltip is hidden
  • Loading branch information
Kadrian authored Dec 11, 2023
2 parents 2c315b5 + 178d714 commit 87c66b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/js/app/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Content = () => {
>
{displayTooltip ? <Tooltip /> : <ActivateTooltip />}
</Panel>
<ResizeHandle />
<ResizeHandle disabled={!displayTooltip} />
<Panel minSize={350} defaultSize={600}>
<LeftPane />
</Panel>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/js/common/ResizeHandle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const Line = styled("div")`
background-color: ${({ theme }) => theme.col.grayMediumLight};
`;

export const ResizeHandle = () => {
export const ResizeHandle = ({ disabled }: { disabled?: boolean }) => {
return (
<SxPanelResizeHandle>
<SxPanelResizeHandle disabled={disabled}>
<Handle>
<Line />
</Handle>
Expand Down

0 comments on commit 87c66b2

Please sign in to comment.