Improvements all around :)
This commit is contained in:
parent
3027e6c611
commit
9a9956304a
1 changed files with 5 additions and 2 deletions
|
|
@ -4,12 +4,15 @@ import React from 'react';
|
|||
import AceEditor from 'react-ace';
|
||||
|
||||
export default ({ paste, syntax }) => (
|
||||
<div style={{ width: '100vw', height: 'calc(100vh - 3.5em)' }}>
|
||||
<div
|
||||
className="px-5 py-5"
|
||||
style={{ width: '100vw', height: 'calc(100vh - 3.5em)' }}
|
||||
>
|
||||
<AceEditor
|
||||
mode={`${syntax}`}
|
||||
theme="github"
|
||||
name="paste_viewer"
|
||||
fontSize={14}
|
||||
fontSize={18}
|
||||
value={paste}
|
||||
wrapEnabled
|
||||
readOnly
|
||||
|
|
|
|||
Loading…
Reference in a new issue