Skip to content

Build your personal knowledge base with Trilium Notes

client: make code notes full-width

Adorian Doran8b4fee16808d
diff --git a/apps/client/src/widgets/note_wrapper.ts b/apps/client/src/widgets/note_wrapper.ts
index 9d1be7794f..d524a51951 100644
--- a/apps/client/src/widgets/note_wrapper.ts
+++ b/apps/client/src/widgets/note_wrapper.ts
@@ -71,7 +71,7 @@ export default class NoteWrapperWidget extends FlexContainer<BasicWidget> {
}
#isFullWidthNote(note: FNote) {
- if (["image", "mermaid", "book", "render", "canvas", "webView", "mindMap"].includes(note.type)) {
+ if (["code", "image", "mermaid", "book", "render", "canvas", "webView", "mindMap"].includes(note.type)) {
return true;
}