diff --git a/components/CodeImage.js b/components/CodeImage.js index aafeb36..c5cbfbf 100644 --- a/components/CodeImage.js +++ b/components/CodeImage.js @@ -51,8 +51,7 @@ const DEFAULT_SETTINGS = { // create styles const containerStyle = { background: config.background, - padding: `${config.paddingVertical} ${config.paddingHorizontal}`, - paddingTop: `calc(${config.paddingVertical} - 19px)` // TODO fix hack: accomodates for space taken up by window controls + padding: `${config.paddingVertical} ${config.paddingHorizontal}` } // set content to spinner if loading, else editor diff --git a/components/Meta.js b/components/Meta.js index 3b9d53b..307e893 100644 --- a/components/Meta.js +++ b/components/Meta.js @@ -61,10 +61,14 @@ export default () => ( .CodeMirror__container .CodeMirror { height: auto; min-width: 680px; - padding: 40px 18px 24px; + padding: 24px 18px; border-radius: 5px; } + .window-controls + .CodeMirror__container > .CodeMirror { + padding-top: 40px; + } + .cm-s-dracula .CodeMirror-cursor { border-left: solid 2px #159588; } diff --git a/components/svg/Controls.js b/components/svg/Controls.js index 5d0a08b..be5ba31 100644 --- a/components/svg/Controls.js +++ b/components/svg/Controls.js @@ -1,7 +1,7 @@ import React from 'react' export default () => ( -