diff --git a/components/Carbon.js b/components/Carbon.js index ed867ab..8c9c58c 100644 --- a/components/Carbon.js +++ b/components/Carbon.js @@ -83,6 +83,7 @@ class Carbon extends React.Component { // create styles const containerStyle = { background: config.background, + minWidth: config.widthAdjustment ? '90px' : '680px', padding: `${config.paddingVertical} ${config.paddingHorizontal}` } @@ -123,6 +124,10 @@ class Carbon extends React.Component { box-shadow: none; } + #container :global(.CodeMirror__container) { + min-width: inherit; + } + #container :global(.CodeMirror__container.dropshadow) { box-shadow: 0 20px 68px rgba(0, 0, 0, 0.55); border-radius: 5px; @@ -130,7 +135,7 @@ class Carbon extends React.Component { #container :global(.CodeMirror__container .CodeMirror) { height: auto; - min-width: 680px; + min-width: inherit; padding: 18px 18px; border-radius: 5px; font-family: Hack, monospace !important; diff --git a/components/Settings.js b/components/Settings.js index 5bbefe4..76396c8 100644 --- a/components/Settings.js +++ b/components/Settings.js @@ -46,6 +46,11 @@ class Settings extends React.Component { enabled={this.props.enabled.windowControls} onChange={this.props.onChange.bind(null, 'windowControls')} /> +