Update MobileMenu.tsx

This commit is contained in:
zsviczian 2022-03-11 11:41:49 +01:00 committed by GitHub
parent 93c72cbb32
commit d3857fbb35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,13 +172,16 @@ export const MobileMenu = ({
<> <>
{!viewModeEnabled && renderToolbar()} {!viewModeEnabled && renderToolbar()}
<div <div
className={clsx("App-bottom-bar", { className={clsx("layer-ui__wrapper", {
"disable-pointerEvents": "disable-pointerEvents":
appState.draggingElement || appState.draggingElement ||
appState.resizingElement || appState.resizingElement ||
(appState.editingElement && (appState.editingElement &&
!isTextElement(appState.editingElement)), !isTextElement(appState.editingElement)),
})} })}
>
<div
className="App-bottom-bar"
style={{ style={{
marginBottom: SCROLLBAR_WIDTH + SCROLLBAR_MARGIN * 2, marginBottom: SCROLLBAR_WIDTH + SCROLLBAR_MARGIN * 2,
marginLeft: SCROLLBAR_WIDTH + SCROLLBAR_MARGIN * 2, marginLeft: SCROLLBAR_WIDTH + SCROLLBAR_MARGIN * 2,
@ -243,6 +246,7 @@ export const MobileMenu = ({
</footer> </footer>
</Island> </Island>
</div> </div>
</div>
</> </>
); );
}; };