diff options
author | Maxim Devaev <[email protected]> | 2021-11-04 02:42:48 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-11-04 02:42:48 +0300 |
commit | aed6fd10ed0d29a5534618f1a75a337e03bc4eb5 (patch) | |
tree | e518e7a6448538c948066bb7fde41c6fc846246a /web/share | |
parent | 653bef865754a211660da892cb67cbedd5b081dc (diff) |
pikvm/pikvm#531: improved fullscreen focus
Diffstat (limited to 'web/share')
-rw-r--r-- | web/share/css/kvm/stream.css | 13 | ||||
-rw-r--r-- | web/share/css/vars.css | 1 | ||||
-rw-r--r-- | web/share/js/wm.js | 1 |
3 files changed, 15 insertions, 0 deletions
diff --git a/web/share/css/kvm/stream.css b/web/share/css/kvm/stream.css index 0df306f2..f754ae26 100644 --- a/web/share/css/kvm/stream.css +++ b/web/share/css/kvm/stream.css @@ -64,6 +64,19 @@ video#stream-video { display: block; background-color: black; } +div#stream-window.window-active:fullscreen { + border: 0px !important; + border-radius: 0px !important; +} +div#stream-window.window-active:fullscreen div#stream-box div#stream-fullscreen-active { + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + border: 0; + box-shadow: var(--shadow-window-fullscreen-active); +} div#stream-mouse-buttons { display: none; diff --git a/web/share/css/vars.css b/web/share/css/vars.css index beee09d8..c75e82a8 100644 --- a/web/share/css/vars.css +++ b/web/share/css/vars.css @@ -72,6 +72,7 @@ --shadow-small: 0 2px 4px 0 rgba(0, 0, 0, 0.2); --shadow-big: 0 8px 16px 0 rgba(0, 0, 0, 0.4); --shadow-navbar-item-pressed: 0 5px 0 #5b90bb inset; + --shadow-window-fullscreen-active: 0 0 0 2px #5b90bb inset; --border-default-thin: thin solid #36393f; --border-default-2px: 2px solid #36393f; diff --git a/web/share/js/wm.js b/web/share/js/wm.js index f45dabd0..0a7d303d 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -115,6 +115,7 @@ function __WindowManager() { el_full_screen_button.title = "Go to full-screen mode"; tools.el.setOnClick(el_full_screen_button, function() { __fullScreenWindow(el_window); + el_window.focus(el_window); // Почему-то теряется фокус __activateLastWindow(el_window); }); } |