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.
This commit is contained in:
Sebastian Castro 2020-04-18 12:45:22 +02:00 committed by muxator
parent 4593c4be7c
commit 03227e526f
2 changed files with 2 additions and 0 deletions

View file

@ -1,5 +1,6 @@
.toolbar { .toolbar {
display: none; display: none;
position: relative;
background-color: #f4f4f4; background-color: #f4f4f4;
color: #666; color: #666;
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;

View file

@ -44,6 +44,7 @@ var padmodals = (function()
}); });
}, },
showOverlay: function() { showOverlay: function() {
// Prevent the user to interact with the toolbar. Useful when user is disconnected for example
$("#toolbar-overlay").show(); $("#toolbar-overlay").show();
}, },
hideOverlay: function() { hideOverlay: function() {