mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
use isLabelTruthy() for most binary labels
This commit is contained in:
@@ -44,7 +44,7 @@ export default class NoteWrapperWidget extends FlexContainer {
|
||||
|
||||
this.$widget.toggleClass("full-content-width",
|
||||
['image', 'mermaid', 'book', 'render', 'canvas', 'webView'].includes(note.type)
|
||||
|| !!note?.hasLabel('fullContentWidth')
|
||||
|| !!note?.isLabelTruthy('fullContentWidth')
|
||||
);
|
||||
|
||||
this.$widget.addClass(note.getCssClass());
|
||||
|
||||
Reference in New Issue
Block a user