diff --git a/app/app.css b/app/app.css index 67b01bb..7472052 100644 --- a/app/app.css +++ b/app/app.css @@ -12,13 +12,21 @@ .clearfix { display: block; } /* close commented backslash hack */ +html { + height: 100%; +} +body { + min-height: 100%; +} + body { font-family: helvetica, arial, sans-serif; + display: flex; } #react-root { - width: 100%; - height: 100%; + display: flex; + flex: 1; } .ReactModal__Overlay { @@ -26,9 +34,8 @@ body { } .wrapper { - width: 100%; - height: 100%; display: flex; + flex: 1; flex-direction: column; } @@ -125,6 +132,7 @@ body { } .endpoint-box input { + flex: 1; width: 100%; } @@ -150,4 +158,3 @@ body { font-weight: bold; font-size: 20px; } - diff --git a/app/components/App.js b/app/components/App.js index c1b382f..b18dc7e 100644 --- a/app/components/App.js +++ b/app/components/App.js @@ -6,7 +6,6 @@ import GraphiQL from 'graphiql/dist'; import Modal from 'react-modal/lib/index'; Modal.setAppElement(document.getElementById('react-root')); -Modal.injectCSS(); import HTTPHeaderEditor from './HTTPHeaderEditor'; diff --git a/app/components/HTTPHeaderEditor.js b/app/components/HTTPHeaderEditor.js index 2049917..c0badae 100644 --- a/app/components/HTTPHeaderEditor.js +++ b/app/components/HTTPHeaderEditor.js @@ -5,7 +5,7 @@ import React from 'react'; export default class HTTPHeaderEditor extends React.Component { constructor(props) { super(props); - + this.state = { headers: props.headers || [], addingHeader: false @@ -86,9 +86,11 @@ export default class HTTPHeaderEditor extends React.Component { + Add Header
Key | -Value | -+ |
---|---|---|
Key | +Value | ++ |