Skip to content

Commit c81b546

Browse files
committed
Clarify comment for zoom functionality for Code Editor
1 parent 7a371dc commit c81b546

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/components/bottom/CodePreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { initializeEsbuild } from '../../helperFunctions/esbuildService';
2222
const CodePreview: React.FC<{
2323
theme: string | null;
2424
setTheme: any | null;
25-
// zoom: number; //
25+
// zoom: number; // This is added if you want the Code Editor to zoom in/out
2626
containerRef: any;
2727
}> = ({ theme, setTheme, zoom, containerRef }) => {
2828
const ref = useRef<any>();

app/src/components/main/CanvasContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function CanvasContainer(props: CanvasContainerProps): JSX.Element {
140140
<CodePreview
141141
theme={theme}
142142
setTheme={setTheme}
143-
//zoom={zoom} // remove so that Code Preview would not zoom in and out
143+
//zoom={zoom} // This is added if you want the Code Editor to zoom in/out
144144
containerRef={containerRef}
145145
/>
146146
) : (

0 commit comments

Comments
 (0)