Skip to content

Commit

Permalink
- hides the resize handle in full screen mode
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-goldstein committed Jul 21, 2020
1 parent 7df5ba1 commit 2bd4552
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const StyledResizable = styled(Resizable)`

const RESIZABLE_ENABLE = { left: true };

const RESIZABLE_DISABLED = { left: false };

const FlyoutPaneComponent: React.FC<FlyoutPaneComponentProps> = ({
children,
onClose,
Expand Down Expand Up @@ -98,7 +100,7 @@ const FlyoutPaneComponent: React.FC<FlyoutPaneComponentProps> = ({
size="l"
>
<StyledResizable
enable={RESIZABLE_ENABLE}
enable={timelineFullScreen ? RESIZABLE_DISABLED : RESIZABLE_ENABLE}
defaultSize={resizableDefaultSize}
minWidth={timelineFullScreen ? 'calc(100vw - 8px)' : minWidthPixels}
maxWidth={timelineFullScreen ? 'calc(100vw - 8px)' : `${maxWidthPercent}vw`}
Expand Down

0 comments on commit 2bd4552

Please sign in to comment.