Small stuff

This commit is contained in:
Gregory Schier 2016-04-11 17:39:49 -07:00
parent 8ef81fdfb4
commit 3cec2e01f5
5 changed files with 8 additions and 13 deletions

View File

@ -82,7 +82,7 @@ class App extends Component {
<section className="grid__cell section"> <section className="grid__cell section">
<div className="grid--v wide"> <div className="grid--v wide">
<header <header
className="grid grid--center header text-center bg-light txt-sm section__header"> className="grid grid--center header text-center bg-super-light txt-sm section__header">
<div className="tag success"><strong>200</strong>&nbsp;SUCCESS</div> <div className="tag success"><strong>200</strong>&nbsp;SUCCESS</div>
<div className="tag">TIME&nbsp;<strong>143ms</strong></div> <div className="tag">TIME&nbsp;<strong>143ms</strong></div>
</header> </header>
@ -109,6 +109,7 @@ class App extends Component {
<Editor <Editor
value={activeResponse && activeResponse.body || ''} value={activeResponse && activeResponse.body || ''}
options={{ options={{
lineWrapping: true,
mode: 'text/plain', mode: 'text/plain',
readOnly: true, readOnly: true,
placeholder: 'nothing yet...' placeholder: 'nothing yet...'

View File

@ -2,7 +2,6 @@
@import '../constants/dimensions'; @import '../constants/dimensions';
.ReactTabs { .ReactTabs {
position: relative;
.ReactTabs__TabList { .ReactTabs__TabList {
flex-shrink: 0; flex-shrink: 0;
align-items: flex-start; align-items: flex-start;
@ -23,9 +22,8 @@
color: inherit; color: inherit;
} }
&,
button:hover { button:hover {
background-color: transparent; background: transparent;
} }
} }
@ -34,10 +32,4 @@
height: 100%; height: 100%;
} }
.ReactTabs__TabPanel {
//position: absolute;
//width: 100%;
//height: 100%;
//border-top: 1px solid $hl-sm;
}
} }

View File

@ -22,7 +22,7 @@ $hl-xl: rgba(140, 140, 140, 0.5);
$hl-xxl: rgba(140, 140, 140, 0.7); $hl-xxl: rgba(140, 140, 140, 0.7);
$hl: rgba(140, 140, 140, 1); $hl: rgba(140, 140, 140, 1);
$success: #91c74e; $success: #85b94a;
$warning: #ffad36; $warning: #ffad36;
$danger: #ff6d59; $danger: #ff6d59;
$surprise: #a086ff; $surprise: #a086ff;

View File

@ -101,7 +101,7 @@ i.fa {
.section:not(:last-child) { .section:not(:last-child) {
.section__header { .section__header {
border-right: 1px solid #eee;
} }
.section__body { .section__body {

View File

@ -18,8 +18,10 @@ export default function (request, callback) {
for (let i = 0; i < request.headers.length; i++) { for (let i = 0; i < request.headers.length; i++) {
let header = request.headers[i]; let header = request.headers[i];
if (header.name) {
config.headers[header.name] = header.value; config.headers[header.name] = header.value;
} }
}
// SNEAKY HACK: Render nested object by converting it to JSON then rendering // SNEAKY HACK: Render nested object by converting it to JSON then rendering
const context = {template_id: 'tem_WWq2w9uJNR6Pqk8APkvsS3'}; const context = {template_id: 'tem_WWq2w9uJNR6Pqk8APkvsS3'};