Skip to content

Commit 42cc100

Browse files
committed
ui stuff
1 parent ac01f79 commit 42cc100

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/excalidraw/components/LayerUI.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ const LayerUI = ({
233233
<div style={{ position: "relative" }}>
234234
{/* wrapping to Fragment stops React from occasionally complaining
235235
about identical Keys */}
236-
<tunnels.MainMenuTunnel.Out />
236+
<div className="excalidraw-ui-top-left">
237+
{renderTopLeftUI?.(false, appState)}
238+
<tunnels.MainMenuTunnel.Out />
239+
</div>
237240
{renderWelcomeScreen && <tunnels.WelcomeScreenMenuHintTunnel.Out />}
238241
</div>
239242
);

packages/excalidraw/components/MobileMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export const MobileMenu = ({
7171

7272
const topRightUI = (
7373
<div className="excalidraw-ui-top-right">
74-
{renderTopRightUI?.(true, appState) ??
75-
(!appState.viewModeEnabled && <DefaultSidebarTriggerTunnel.Out />)}
74+
{renderTopRightUI?.(true, appState)}
75+
{!appState.viewModeEnabled && <DefaultSidebarTriggerTunnel.Out />}
7676
{appState.viewModeEnabled && (
7777
<ExitViewModeButton actionManager={actionManager} />
7878
)}

0 commit comments

Comments
 (0)