fixed background of protected notes

This commit is contained in:
azivner 2017-12-16 21:27:42 -05:00
parent e206269457
commit 8eff18922c
3 changed files with 4 additions and 4 deletions

View File

@ -80,12 +80,12 @@ const noteEditor = (function() {
function setNoteBackgroundIfProtected(note) {
if (note.detail.is_protected) {
$("#note-detail").addClass("protected");
$("#note-detail-wrapper").addClass("protected");
protectButton.hide();
unprotectButton.show();
}
else {
$("#note-detail").removeClass("protected");
$("#note-detail-wrapper").removeClass("protected");
protectButton.show();
unprotectButton.hide();
}

View File

@ -30,7 +30,7 @@
overflow: auto;
}
#note-detail.protected {
#note-detail-wrapper.protected {
background-color: #eee;
}

View File

@ -94,7 +94,7 @@
</div>
</div>
<div style="overflow: auto; grid-area: note-content; padding-left: 10px;">
<div style="overflow: auto; grid-area: note-content; padding-left: 10px; padding-top: 10px;" id="note-detail-wrapper">
<div id="note-detail"></div>
</div>
</div>