A few style tweaks

This commit is contained in:
Gregory Schier 2017-06-22 12:37:24 -07:00
parent 8ce6ec60f8
commit ba24e4c434
2 changed files with 21 additions and 10 deletions

View File

@ -6,6 +6,11 @@ import {getAppName, isDevelopment, isMac} from '../common/constants';
const {app, Menu, BrowserWindow, shell, dialog} = electron; const {app, Menu, BrowserWindow, shell, dialog} = electron;
const DEFAULT_WIDTH = 1100;
const DEFAULT_HEIGHT = 550;
const MINIMUM_WIDTH = 500;
const MINIMUM_HEIGHT = 400;
let mainWindow = null; let mainWindow = null;
let localStorage = null; let localStorage = null;
@ -37,10 +42,10 @@ export function createWindow () {
fullscreen: fullscreen, fullscreen: fullscreen,
fullscreenable: true, fullscreenable: true,
title: getAppName(), title: getAppName(),
width: width || 1200, width: width || DEFAULT_WIDTH,
height: height || 600, height: height || DEFAULT_HEIGHT,
minHeight: 500, minHeight: MINIMUM_WIDTH,
minWidth: 500, minWidth: MINIMUM_HEIGHT,
acceptFirstMouse: true, acceptFirstMouse: true,
icon: path.resolve(__dirname, 'static/icon.png'), icon: path.resolve(__dirname, 'static/icon.png'),
webPreferences: { webPreferences: {
@ -248,7 +253,12 @@ export function createWindow () {
click: () => mainWindow.toggleDevTools() click: () => mainWindow.toggleDevTools()
}, { }, {
label: 'Resize to Default', label: 'Resize to Default',
click: () => mainWindow.setBounds({x: 100, y: 100, width: 1000, height: 480}) click: () => mainWindow.setBounds({
x: 100,
y: 100,
width: DEFAULT_WIDTH,
height: DEFAULT_HEIGHT
})
}, { }, {
label: 'Take Screenshot', label: 'Take Screenshot',
click: function () { click: function () {

View File

@ -240,8 +240,7 @@ class RequestPane extends PureComponent {
request={request} request={request}
className="tall"> className="tall">
{getContentTypeName(request.body.mimeType) || 'Body'} {getContentTypeName(request.body.mimeType) || 'Body'}
{' '} {numBodyParams ? <span className="bubble space-left">{numBodyParams}</span> : null}
{numBodyParams ? <span className="bubble">{numBodyParams}</span> : null}
<i className="fa fa-caret-down space-left"/> <i className="fa fa-caret-down space-left"/>
</ContentTypeDropdown> </ContentTypeDropdown>
</Tab> </Tab>
@ -255,17 +254,19 @@ class RequestPane extends PureComponent {
</Tab> </Tab>
<Tab onClick={this._trackTabQuery}> <Tab onClick={this._trackTabQuery}>
<button> <button>
Query {numParameters > 0 && <span className="bubble">{numParameters}</span>} Query
{numParameters > 0 && <span className="bubble space-left">{numParameters}</span>}
</button> </button>
</Tab> </Tab>
<Tab onClick={this._trackTabHeaders}> <Tab onClick={this._trackTabHeaders}>
<button> <button>
Header {numHeaders > 0 && <span className="bubble">{numHeaders}</span>} Header
{numHeaders > 0 && <span className="bubble space-left">{numHeaders}</span>}
</button> </button>
</Tab> </Tab>
<Tab onClick={this._trackTabDescription}> <Tab onClick={this._trackTabDescription}>
<button> <button>
Description Docs
{request.description && ( {request.description && (
<span className="bubble space-left"> <span className="bubble space-left">
<i className="fa fa--skinny fa-check txt-xxs"/> <i className="fa fa--skinny fa-check txt-xxs"/>