diff --git a/src/components/Actions.tsx b/src/components/Actions.tsx
index 0aabffaff..17b7db28a 100644
--- a/src/components/Actions.tsx
+++ b/src/components/Actions.tsx
@@ -17,7 +17,7 @@ import { AppClassProperties, AppProps, UIAppState, Zoom } from "../types";
import { capitalizeString, isTransparent } from "../utils";
import Stack from "./Stack";
import { ToolButton } from "./ToolButton";
-import { SubtypeShapeActions, SubtypeToggles } from "./Subtypes";
+import { SubtypeShapeActions } from "./Subtypes";
import { hasStrokeColor } from "../scene/comparisons";
import { trackEvent } from "../analytics";
import { hasBoundTextElement, isTextElement } from "../element/typeChecks";
@@ -342,7 +342,6 @@ export const ShapesSwitcher = ({
-
>
);
};
diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx
index b32adcf30..09bb0ef4a 100644
--- a/src/components/LayerUI.tsx
+++ b/src/components/LayerUI.tsx
@@ -55,6 +55,7 @@ import "./Toolbar.scss";
import { mutateElement } from "../element/mutateElement";
import { ShapeCache } from "../scene/ShapeCache";
import Scene from "../scene/Scene";
+import { SubtypeToggles } from "./Subtypes";
import { LaserPointerButton } from "./LaserTool/LaserPointerButton";
interface LayerUIProps {
@@ -285,6 +286,7 @@ const LayerUI = ({
/>
+
{isCollaborating && (
+
{renderTopRightUI && renderTopRightUI(true, appState)}
{!appState.viewModeEnabled && (
diff --git a/src/components/Subtypes.tsx b/src/components/Subtypes.tsx
index 2df6955b0..80e1fcc20 100644
--- a/src/components/Subtypes.tsx
+++ b/src/components/Subtypes.tsx
@@ -17,6 +17,7 @@ import {
useExcalidrawSetAppState,
} from "./App";
import { ContextMenuItems } from "./ContextMenu";
+import { Island } from "./Island";
export const SubtypeButton = (
subtype: Subtype,
@@ -145,12 +146,20 @@ export const SubtypeToggles = () => {
return (
<>
- {getSubtypeNames().map((subtype) =>
- am.renderAction(
- `custom.${subtype}`,
- hasAlwaysEnabledActions(subtype) ? { onContextMenu } : {},
- ),
- )}
+
+ {getSubtypeNames().map((subtype) =>
+ am.renderAction(
+ `custom.${subtype}`,
+ hasAlwaysEnabledActions(subtype) ? { onContextMenu } : {},
+ ),
+ )}
+
>
);
};