diff --git a/src/components/Instruqt/LabDrawer.js b/src/components/Instruqt/LabDrawer.js index 07f21f260..d8aeeef4f 100644 --- a/src/components/Instruqt/LabDrawer.js +++ b/src/components/Instruqt/LabDrawer.js @@ -32,20 +32,27 @@ const handleContainerStyle = css` justify-content: center; `; -const handleStyle = css` +const handleGrabArea = css` position: absolute; - border-radius: 4px; cursor: ns-resize; top: 10px; - background-color: ${palette.white}; - width: 50px; - height: 4px; + + // Allows element to be bigger in size while maintaining visual size + padding: 10px 20px 20px 20px; + margin: -10px -20px -20px -20px; @media ${theme.screenSize.upToMedium} { display: none; } `; +const handleStyle = css` + border-radius: 4px; + background-color: ${palette.white}; + width: 50px; + height: 4px; +`; + const topContainerStyle = css` position: relative; padding: 0 17px; @@ -75,11 +82,25 @@ const titleStyle = css` } `; +const iframeOverlayStyle = css` + position: absolute; + bottom: 0; + left: 0; + z-index: 1; + opacity: 0; + width: 100%; +`; + const CustomResizeHandle = React.forwardRef((props, ref) => { + // handleAxis is being filtered out to avoid prop warning for div + // restProps along with ref are what actually allows react-resizable to treat this as a handle const { handleAxis, ...restProps } = props; return (