mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
stuff
This commit is contained in:
parent
16eb53dbe0
commit
c5131f946c
@ -25,12 +25,11 @@
|
||||
& > * {
|
||||
cursor: ew-resize;
|
||||
position: absolute;
|
||||
//background: rgba(255, 0, 0, 0.3);
|
||||
height: 100%;
|
||||
z-index: 20;
|
||||
width: $drag-width;
|
||||
top: 0;
|
||||
// More to the right so it doesn't cover scrollbars
|
||||
// More to the right so it doesn't cover scroll bars
|
||||
left: -$drag-width / 8;
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ $bg-super-light: #fff;
|
||||
$bg-dark: #2e2f2b;
|
||||
$bg-super-dark: #292a26;
|
||||
$bg-brand: $color-brand;
|
||||
$bg-backdrop: rgba(20, 20, 20, 0.5);
|
||||
$bg-backdrop: rgba(30, 30, 30, 0.6);
|
||||
|
||||
/* Font Colors */
|
||||
$font-light-bg: #444;
|
||||
|
@ -69,13 +69,11 @@ export function initDB () {
|
||||
timeout = setTimeout(() => {
|
||||
|
||||
// First, write to a tmp file, then overwrite the old one. This
|
||||
// prevents getting a corrupt file if we crash part-way through
|
||||
// a write.
|
||||
|
||||
// prevents getting a corru
|
||||
const filePath = getDBFilePath();
|
||||
const tmpFilePath = `${filePath}.tmp`;
|
||||
|
||||
fs.writeFile(tmpFilePath, JSON.stringify(db, null, 2), err => {
|
||||
fs.writeFile(tmp, JSON.stringify(db, null, 2), err => {
|
||||
if (err) {
|
||||
console.error('Failed to write DB to file', err);
|
||||
} else {
|
||||
@ -157,7 +155,7 @@ function remove (doc) {
|
||||
TYPES.map(type => removeWhere(type, 'parentId', doc._id));
|
||||
|
||||
Object.keys(changeListeners).map(k => changeListeners[k]('remove', doc));
|
||||
new Promise(resolve => resolve());
|
||||
new Promise(resolve => resolve(doc));
|
||||
}
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@ export const REQUEST_TIME_TO_SHOW_COUNTER = 1; // Seconds
|
||||
|
||||
// UI Stuff
|
||||
export const MAX_SIDEBAR_REMS = 35;
|
||||
export const MIN_SIDEBAR_REMS = 13;
|
||||
export const MIN_SIDEBAR_REMS = 10;
|
||||
export const MAX_PANE_WIDTH = 0.99;
|
||||
export const MIN_PANE_WIDTH = 0.01;
|
||||
export const DEFAULT_PANE_WIDTH = 0.5;
|
||||
|
Loading…
Reference in New Issue
Block a user