1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix no-drag css

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-05-01 09:07:21 +03:00
parent 29cd171d0f
commit db9d00a6ae
2 changed files with 2 additions and 4 deletions

View File

@ -8,6 +8,8 @@
border: 0;
outline: none;
-webkit-font-smoothing: antialiased;
-webkit-user-drag: none;
-webkit-app-region: no-drag;
}
::selection {

View File

@ -93,10 +93,6 @@ export default {
console.log("lens loaded")
this.lens.loaded = true;
this.$store.commit("updateLens", this.lens);
this.lens.webview.getWebContents().executeJavaScript(
// disable dragging of ui links
'document.styleSheets[0].insertRule("*, *::after, *::before { -webkit-user-drag: none; -webkit-app-region: no-drag; }", 1);'
);
},
// Called only when online state changes
toggleLens: function() {