mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
A few style tweaks
This commit is contained in:
parent
8ce6ec60f8
commit
ba24e4c434
@ -6,6 +6,11 @@ import {getAppName, isDevelopment, isMac} from '../common/constants';
|
||||
|
||||
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 localStorage = null;
|
||||
|
||||
@ -37,10 +42,10 @@ export function createWindow () {
|
||||
fullscreen: fullscreen,
|
||||
fullscreenable: true,
|
||||
title: getAppName(),
|
||||
width: width || 1200,
|
||||
height: height || 600,
|
||||
minHeight: 500,
|
||||
minWidth: 500,
|
||||
width: width || DEFAULT_WIDTH,
|
||||
height: height || DEFAULT_HEIGHT,
|
||||
minHeight: MINIMUM_WIDTH,
|
||||
minWidth: MINIMUM_HEIGHT,
|
||||
acceptFirstMouse: true,
|
||||
icon: path.resolve(__dirname, 'static/icon.png'),
|
||||
webPreferences: {
|
||||
@ -248,7 +253,12 @@ export function createWindow () {
|
||||
click: () => mainWindow.toggleDevTools()
|
||||
}, {
|
||||
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',
|
||||
click: function () {
|
||||
|
@ -240,8 +240,7 @@ class RequestPane extends PureComponent {
|
||||
request={request}
|
||||
className="tall">
|
||||
{getContentTypeName(request.body.mimeType) || 'Body'}
|
||||
{' '}
|
||||
{numBodyParams ? <span className="bubble">{numBodyParams}</span> : null}
|
||||
{numBodyParams ? <span className="bubble space-left">{numBodyParams}</span> : null}
|
||||
<i className="fa fa-caret-down space-left"/>
|
||||
</ContentTypeDropdown>
|
||||
</Tab>
|
||||
@ -255,17 +254,19 @@ class RequestPane extends PureComponent {
|
||||
</Tab>
|
||||
<Tab onClick={this._trackTabQuery}>
|
||||
<button>
|
||||
Query {numParameters > 0 && <span className="bubble">{numParameters}</span>}
|
||||
Query
|
||||
{numParameters > 0 && <span className="bubble space-left">{numParameters}</span>}
|
||||
</button>
|
||||
</Tab>
|
||||
<Tab onClick={this._trackTabHeaders}>
|
||||
<button>
|
||||
Header {numHeaders > 0 && <span className="bubble">{numHeaders}</span>}
|
||||
Header
|
||||
{numHeaders > 0 && <span className="bubble space-left">{numHeaders}</span>}
|
||||
</button>
|
||||
</Tab>
|
||||
<Tab onClick={this._trackTabDescription}>
|
||||
<button>
|
||||
Description
|
||||
Docs
|
||||
{request.description && (
|
||||
<span className="bubble space-left">
|
||||
<i className="fa fa--skinny fa-check txt-xxs"/>
|
||||
|
Loading…
Reference in New Issue
Block a user