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 {
display: none;
position: relative;
background-color: #f4f4f4;
color: #666;
border-bottom: 1px solid #ccc;

View File

@ -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() {