From 7fc4ddcde16fca62d24ea76c2234c8010f51785f Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Thu, 20 Feb 2020 11:51:13 +0100 Subject: [PATCH] Update electron to version 8.0.1 --- package.json | 2 +- resources/js/index.js | 4 ++-- resources/style/index.css | 5 ++++- src/main.js | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3f05a38..b1fe407 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "single-instance": "^0.0.1" }, "devDependencies": { - "electron": "^6.0.10", + "electron": "^8.0.1", "electron-builder": "^21.2.0" }, "build": { diff --git a/resources/js/index.js b/resources/js/index.js index 8699067..ca77ea9 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -439,7 +439,7 @@ function updateNavigation() { function updateWindowTitle() { if (selectedService === null) { ipcRenderer.send('updateWindowTitle', null); - } else if(services[selectedService].viewReady) { + } else if (services[selectedService].viewReady) { ipcRenderer.send('updateWindowTitle', selectedService, services[selectedService].view.getWebContents().getTitle()); } } @@ -452,4 +452,4 @@ function goForward() { function goBack() { let view = services[selectedService].view; if (view) view.getWebContents().goBack(); -} \ No newline at end of file +} diff --git a/resources/style/index.css b/resources/style/index.css index 726e0bc..5734982 100644 --- a/resources/style/index.css +++ b/resources/style/index.css @@ -34,17 +34,20 @@ body { background-color: rgb(43, 43, 43); } + #service-selector .drag-target button::after { position: absolute; left: 0; top: 0; width: 100%; } + #service-last-drag-position:not(.hidden):not(.drag-target) { display: block; padding: 16px 4px; background-color: #fff5; } + #service-last-drag-position:not(.drag-target)::after { content: ""; display: block; @@ -193,4 +196,4 @@ body { top: 50%; transform: translate(-50%, -50%); z-index: -1; -} \ No newline at end of file +} diff --git a/src/main.js b/src/main.js index 5494bc6..d477546 100644 --- a/src/main.js +++ b/src/main.js @@ -215,4 +215,4 @@ function listIcons(set) { } console.log('Starting app'); -app.on('ready', createWindow); \ No newline at end of file +app.on('ready', createWindow);