Skip to content

Commit

Permalink
fix: border radius on editor
Browse files Browse the repository at this point in the history
  • Loading branch information
octokatherine authored Oct 31, 2021
1 parent 7dc8133 commit 5a76db1
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions packages/run-wasm/src/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function Editor(props: Props) {
</label>

<div style={{ marginTop: '1rem' }}>
<div>
<div style={{ borderRadius: '0.5rem', overflow: 'hidden' }}>
<MonacoEditor
height="20rem"
defaultLanguage={defaultLanguage}
Expand All @@ -74,7 +74,11 @@ export default function Editor(props: Props) {
inputCodeRef.current = value || ''
}}
theme="vs-dark"
options={{ fontSize: 12, minimap: { enabled: false } }}
options={{
fontSize: 12,
minimap: { enabled: false },
padding: { top: 16 },
}}
onMount={handleEditorDidMount}
/>
</div>
Expand Down Expand Up @@ -116,7 +120,13 @@ export default function Editor(props: Props) {
Output
</label>

<div style={{ marginTop: '1rem' }}>
<div
style={{
marginTop: '1rem',
borderRadius: '0.5rem',
overflow: 'hidden',
}}
>
<MonacoEditor
value={output?.toString()}
height="20rem"
Expand All @@ -126,6 +136,7 @@ export default function Editor(props: Props) {
readOnly: true,
fontSize: 12,
minimap: { enabled: false },
padding: { top: 16 },
}}
/>
</div>
Expand Down

0 comments on commit 5a76db1

Please sign in to comment.