Skip to content

Commit

Permalink
disabled inspection in fullscreen mode
Browse files Browse the repository at this point in the history
  • Loading branch information
softmarshmallow committed Apr 10, 2022
1 parent 3b9232b commit 6155b95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ export function VanillaDedicatedPreviewRenderer({
loader,
componentName,
source,
}: ScenePreviewData) {
enableIspector = false,
}: ScenePreviewData & {
enableIspector?: boolean;
}) {
return (
<>
{loader === "vanilla-esbuild-template" ? (
Expand All @@ -25,6 +28,7 @@ export function VanillaDedicatedPreviewRenderer({
borderRadius: 4,
boxShadow: "0px 0px 48px #00000020",
}}
enableInspector={enableIspector}
source={source}
componentName={componentName}
/>
Expand Down
5 changes: 4 additions & 1 deletion editor/scaffolds/canvas/isolate-mode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ export function IsolateModeCanvas({
>
<>
{source ? (
<VanillaDedicatedPreviewRenderer {...state.currentPreview} />
<VanillaDedicatedPreviewRenderer
{...state.currentPreview}
enableIspector
/>
) : (
<EditorCanvasSkeleton />
)}
Expand Down

0 comments on commit 6155b95

Please sign in to comment.