From d3857fbb3590529131170c51d7310b4967f1780b Mon Sep 17 00:00:00 2001 From: zsviczian Date: Fri, 11 Mar 2022 11:41:49 +0100 Subject: [PATCH] Update MobileMenu.tsx --- src/components/MobileMenu.tsx | 132 +++++++++++++++++----------------- 1 file changed, 68 insertions(+), 64 deletions(-) diff --git a/src/components/MobileMenu.tsx b/src/components/MobileMenu.tsx index a860efcab..c63e4fbfb 100644 --- a/src/components/MobileMenu.tsx +++ b/src/components/MobileMenu.tsx @@ -172,76 +172,80 @@ export const MobileMenu = ({ <> {!viewModeEnabled && renderToolbar()}
- - {appState.openMenu === "canvas" ? ( -
-
- - {renderCanvasActions()} - {renderCustomFooter?.(true, appState)} - {appState.collaborators.size > 0 && ( -
- {t("labels.collaborators")} - - {Array.from(appState.collaborators) - // Collaborator is either not initialized or is actually the current user. - .filter( - ([_, client]) => Object.keys(client).length !== 0, - ) - .map(([clientId, client]) => ( - - {actionManager.renderAction("goToCollaborator", { - id: clientId, - })} - - ))} - -
- )} -
-
-
- ) : appState.openMenu === "shape" && - !viewModeEnabled && - showSelectedShapeActions(appState, elements) ? ( -
- -
- ) : null} -
- {renderAppToolbar()} - {appState.scrolledOutside && !appState.openMenu && ( - - )} -
-
+ > +
+ + {appState.openMenu === "canvas" ? ( +
+
+ + {renderCanvasActions()} + {renderCustomFooter?.(true, appState)} + {appState.collaborators.size > 0 && ( +
+ {t("labels.collaborators")} + + {Array.from(appState.collaborators) + // Collaborator is either not initialized or is actually the current user. + .filter( + ([_, client]) => Object.keys(client).length !== 0, + ) + .map(([clientId, client]) => ( + + {actionManager.renderAction("goToCollaborator", { + id: clientId, + })} + + ))} + +
+ )} +
+
+
+ ) : appState.openMenu === "shape" && + !viewModeEnabled && + showSelectedShapeActions(appState, elements) ? ( +
+ +
+ ) : null} + +
+
);