mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Fix max content width not working (fixes #3056)
This commit is contained in:
parent
6dee1f38f7
commit
d73da33b08
@ -10,12 +10,6 @@ export default class NoteWrapperWidget extends FlexContainer {
|
|||||||
.collapsible();
|
.collapsible();
|
||||||
}
|
}
|
||||||
|
|
||||||
doRender() {
|
|
||||||
super.doRender();
|
|
||||||
|
|
||||||
this.$widget.addClass("note-split");
|
|
||||||
}
|
|
||||||
|
|
||||||
setNoteContextEvent({noteContext}) {
|
setNoteContextEvent({noteContext}) {
|
||||||
this.noteContext = noteContext;
|
this.noteContext = noteContext;
|
||||||
|
|
||||||
@ -42,6 +36,7 @@ export default class NoteWrapperWidget extends FlexContainer {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.$widget.addClass("note-split");
|
||||||
this.$widget.toggleClass("full-content-width",
|
this.$widget.toggleClass("full-content-width",
|
||||||
['image', 'mermaid', 'book', 'render', 'canvas', 'web-view'].includes(note.type)
|
['image', 'mermaid', 'book', 'render', 'canvas', 'web-view'].includes(note.type)
|
||||||
|| !!note?.hasLabel('fullContentWidth')
|
|| !!note?.hasLabel('fullContentWidth')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user