From 03227e526f7fe0b956977380e2390716fee12de7 Mon Sep 17 00:00:00 2001 From: Sebastian Castro Date: Sat, 18 Apr 2020 12:45:22 +0200 Subject: [PATCH] css: fix toolbar overlay so it cover only toolbar and not the whole screen This allows to copy & paste the pad text even when disconnected. --- src/static/css/pad/toolbar.css | 1 + src/static/js/pad_modals.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/static/css/pad/toolbar.css b/src/static/css/pad/toolbar.css index 93508ab33..414a9e909 100644 --- a/src/static/css/pad/toolbar.css +++ b/src/static/css/pad/toolbar.css @@ -1,5 +1,6 @@ .toolbar { display: none; + position: relative; background-color: #f4f4f4; color: #666; border-bottom: 1px solid #ccc; diff --git a/src/static/js/pad_modals.js b/src/static/js/pad_modals.js index 18bda08da..f965bc600 100644 --- a/src/static/js/pad_modals.js +++ b/src/static/js/pad_modals.js @@ -44,6 +44,7 @@ var padmodals = (function() }); }, showOverlay: function() { + // Prevent the user to interact with the toolbar. Useful when user is disconnected for example $("#toolbar-overlay").show(); }, hideOverlay: function() {