mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fixed background of protected notes
This commit is contained in:
parent
e206269457
commit
8eff18922c
@ -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();
|
||||
}
|
||||
|
@ -30,7 +30,7 @@
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#note-detail.protected {
|
||||
#note-detail-wrapper.protected {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user