Skip to content

Commit 2653d0c

Browse files
committed
Add div above Ace Editor in Code Preview so that color of top background can be same as code editor
1 parent adafeb4 commit 2653d0c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/src/components/bottom/CodePreview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ const CodePreview: React.FC<{
9090
transform: `scale(${zoom})`
9191
}}
9292
>
93+
<div style={{width: '100%', height: '80px', marginTop: '-70px', backgroundColor: '#191919'}}></div>
9394
<AceEditor
9495
mode="javascript"
9596
theme="clouds_midnight"

app/src/components/main/CanvasContainer.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ function CanvasContainer(props: CanvasContainerProps): JSX.Element {
3333
const canvasContainerStyle: React.CSSProperties = {
3434
width: '100%',
3535
height: '100%',
36-
backgroundColor: 'rgba(25, 25, 25)',
36+
// backgroundColor: 'rgba(25, 25, 25)',
37+
background: '#070808',
38+
backgroundImage: 'radial-gradient(#1E2024 .71px, transparent 0)',
39+
backgroundSize: '8px 8px',
40+
backgroundPosition: '-19px -19px',
3741
borderBottom: 'none',
3842
overflow: 'auto'
3943
};

0 commit comments

Comments
 (0)