diff --git a/examples/with-script-in-browser/components/ExampleApp.scss b/examples/with-script-in-browser/components/ExampleApp.scss index 77b921ea87..fc04124f74 100644 --- a/examples/with-script-in-browser/components/ExampleApp.scss +++ b/examples/with-script-in-browser/components/ExampleApp.scss @@ -34,10 +34,6 @@ } } -.excalidraw .App-menu_top .buttonList { - display: flex; -} - .excalidraw-wrapper { height: 800px; margin: 50px; @@ -45,13 +41,6 @@ overflow: hidden; } -:root[dir="ltr"] - .excalidraw - .layer-ui__wrapper - .zen-mode-transition.App-menu_bottom--transition-left { - transform: none; -} - .excalidraw .selected-shape-actions { text-align: left; } @@ -82,9 +71,6 @@ padding: 0.1rem; margin: 0 8px; } - .layer-ui__wrapper__footer.App-menu_bottom { - align-items: stretch; - } // till its merged in OSS .App-toolbar-container .mobile-misc-tools-container { position: absolute; diff --git a/excalidraw-app/App.tsx b/excalidraw-app/App.tsx index 40586ea6e9..c3b447199f 100644 --- a/excalidraw-app/App.tsx +++ b/excalidraw-app/App.tsx @@ -1,6 +1,7 @@ import { Excalidraw, LiveCollaborationTrigger, + Region, TTDDialogTrigger, CaptureUpdateAction, reconcileElements, @@ -1008,30 +1009,6 @@ const ExcalidrawWrapper = () => { autoFocus={true} theme={editorTheme} onThemeChange={setAppTheme} - renderTopRightUI={(isMobile) => { - if (isMobile || !collabAPI || !isCollabAvailable) { - return null; - } - - return ( -
- {excalidrawAPI?.getEditorInterface().formFactor === "desktop" && ( - - )} - - {collabError.message && } - - setShareDialogState({ isOpen: true, type: "share" }) - } - editorInterface={editorInterface} - /> -
- ); - }} onLinkOpen={(element, event) => { if (element.link && isElementLink(element.link)) { event.preventDefault(); @@ -1043,6 +1020,36 @@ const ExcalidrawWrapper = () => { } }} > + {collabAPI && isCollabAvailable && ( + + {/* not while collaborating (the collaborator list needs the + room); first to go once it doesn't fit */} + {!isCollaborating && ( + + + + )} + {collabError.message && ( + + + + )} + + {({ collapsed }) => ( + + setShareDialogState({ isOpen: true, type: "share" }) + } + editorInterface={editorInterface} + iconOnly={collapsed} + /> + )} + + + )} ` / `` for placing host UI into the editor's layout regions. Render them as children of ``; `area` is one of `top-left`, `top-right`, `center-left`, `center-right`, `bottom-left`, `bottom-right` (the toolbar's `top-center` and `