Skip to content

Commit 8b62bc7

Browse files
committed
Fix TextToolbar
1 parent 3131020 commit 8b62bc7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

apps/builder/app/builder/builder.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@ import { migrateWebstudioDataMutable } from "~/shared/webstudio-data-migrator";
6464
import { Loading, LoadingBackground } from "./shared/loading";
6565
import { mergeRefs } from "@react-aria/utils";
6666
import { CommandPanel } from "./features/command-panel";
67+
6768
import {
6869
initCopyPaste,
6970
initCopyPasteForContentEditMode,
7071
} from "~/shared/copy-paste/init-copy-paste";
7172
import { useInertHandlers } from "./shared/inert-handlers";
73+
import { TextToolbar } from "./features/workspace/canvas-tools/text-toolbar";
7274

7375
registerContainers();
7476

@@ -416,6 +418,9 @@ export const Builder = ({
416418
/>
417419
}
418420
/>
421+
<Main css={{ pointerEvents: "none" }}>
422+
<TextToolbar />
423+
</Main>
419424
{isPreviewMode === false && <Footer />}
420425
<CloneProjectDialog
421426
isOpen={isCloneDialogOpen}

apps/builder/app/builder/features/workspace/canvas-tools/canvas-tools.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
HoveredInstanceOutline,
1313
SelectedInstanceOutline,
1414
} from "./outline";
15-
import { TextToolbar } from "./text-toolbar";
15+
1616
import { Label } from "./outline/label";
1717
import { Outline } from "./outline/outline";
1818
import { useSubscribeDragAndDropState } from "./use-subscribe-drag-drop-state";
@@ -80,8 +80,6 @@ export const CanvasTools = () => {
8080
<SelectedInstanceOutline />
8181
<HoveredInstanceOutline />
8282
<CollaborativeInstanceOutline />
83-
<TextToolbar />
84-
8583
<BlockChildHoveredInstanceOutline />
8684
</>
8785
)}

0 commit comments

Comments
 (0)