mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fixed background of protected notes
This commit is contained in:
		@@ -80,12 +80,12 @@ const noteEditor = (function() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    function setNoteBackgroundIfProtected(note) {
 | 
					    function setNoteBackgroundIfProtected(note) {
 | 
				
			||||||
        if (note.detail.is_protected) {
 | 
					        if (note.detail.is_protected) {
 | 
				
			||||||
            $("#note-detail").addClass("protected");
 | 
					            $("#note-detail-wrapper").addClass("protected");
 | 
				
			||||||
            protectButton.hide();
 | 
					            protectButton.hide();
 | 
				
			||||||
            unprotectButton.show();
 | 
					            unprotectButton.show();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else {
 | 
					        else {
 | 
				
			||||||
            $("#note-detail").removeClass("protected");
 | 
					            $("#note-detail-wrapper").removeClass("protected");
 | 
				
			||||||
            protectButton.show();
 | 
					            protectButton.show();
 | 
				
			||||||
            unprotectButton.hide();
 | 
					            unprotectButton.hide();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,7 +30,7 @@
 | 
				
			|||||||
    overflow: auto;
 | 
					    overflow: auto;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#note-detail.protected {
 | 
					#note-detail-wrapper.protected {
 | 
				
			||||||
    background-color: #eee;
 | 
					    background-color: #eee;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -94,7 +94,7 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      </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 id="note-detail"></div>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user