From c97f7ab7323a0f740159d98025518ff8fab66311 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Fri, 21 Feb 2020 17:58:21 +0800 Subject: [PATCH] disable user select only where needed --- src/main.css | 20 ++------------------ src/renderer.jsx | 23 ++++++++++++----------- 2 files changed, 14 insertions(+), 29 deletions(-) diff --git a/src/main.css b/src/main.css index 1ba95cc8..d8c86075 100644 --- a/src/main.css +++ b/src/main.css @@ -10,13 +10,14 @@ body { } /* https://github.com/electron/electron/issues/2538 */ -:not(input):not(textarea), +.no-user-select :not(input):not(textarea), :not(input):not(textarea)::after, :not(input):not(textarea)::before { -webkit-user-select: none; user-select: none; cursor: default; } + input, button, textarea, :focus { outline: none; } @@ -45,23 +46,6 @@ input, button, textarea, :focus { background: #ccc; } - -.right-menu { - position: absolute; - right: 0; - bottom: 0; - padding: .3em; -} - -.controls-wrapper { - position: absolute; - left: 0; - right: 0; - bottom: 0; - background: #6b6b6b; - text-align: center; -} - .help-sheet { background: white; color: black; diff --git a/src/renderer.jsx b/src/renderer.jsx index 840bc53e..2341de8b 100644 --- a/src/renderer.jsx +++ b/src/renderer.jsx @@ -1507,7 +1507,7 @@ const App = memo(() => { return (
-
+
{filePath && ( { {filePath && ( -
{!filePath && ( -
+
DROP VIDEO(S)
{mifiLink && mifiLink.loadUrl && ( @@ -1627,7 +1626,7 @@ const App = memo(() => { )} -
+
{/* eslint-disable-next-line jsx-a11y/media-has-caption */}