Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(relation_map): always use the full content width
Elian Doran07d1fb235f9a
diff --git a/apps/client/src/widgets/note_wrapper.spec.ts b/apps/client/src/widgets/note_wrapper.spec.tsindex 2283286047..f8ec751837 100644--- a/apps/client/src/widgets/note_wrapper.spec.ts+++ b/apps/client/src/widgets/note_wrapper.spec.ts@@ -54,6 +54,7 @@ describe("isAlwaysFullWidthByType", () => {it("is true for layout-heavy types, media/PDF files and non-list/grid searches", () => {expect(isAlwaysFullWidthByType(buildNote({ title: "Canvas", type: "canvas" }))).toBe(true);+ expect(isAlwaysFullWidthByType(buildNote({ title: "Relations", type: "relationMap" }))).toBe(true);const pdf = buildNote({ title: "PDF", type: "file" });pdf.mime = "application/pdf";diff --git a/apps/client/src/widgets/note_wrapper.ts b/apps/client/src/widgets/note_wrapper.tsindex b7d55287ca..bc4ba650b0 100644--- a/apps/client/src/widgets/note_wrapper.ts+++ b/apps/client/src/widgets/note_wrapper.ts@@ -140,7 +140,7 @@ export function isAlwaysFullWidthByType(note: FNote) {return true;}- if (["code", "image", "mermaid", "book", "render", "canvas", "webView", "noteMap", "mindMap", "spreadsheet"].includes(note.type)) {+ if (["code", "image", "mermaid", "book", "render", "canvas", "webView", "noteMap", "relationMap", "mindMap", "spreadsheet"].includes(note.type)) {return true;}diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Content width.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Content width.htmlindex 98df8787c9..9282744176 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Content width.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/UI Elements/Content width.html@@ -1,6 +1,5 @@-<p>Some note types such as <a class="reference-link" href="#root/_help_iPIMuisry3hd">Text</a>, <a- class="reference-link" href="#root/_help_iRwzGnHPzonm">Relation Map</a>,- and saved search intentionally limit the width of the content.</p>+<p>Some note types (such as <a class="reference-link" href="#root/_help_iPIMuisry3hd">Text</a> and+ saved search) intentionally limit the width of the content.</p><p>This might appear surprising at first, but the idea is to make text fitwell on wider screens without appearing distorted. This is especially thecase if the document contains <a class="reference-link" href="#root/_help_mT0HEkOsz6i1">Images</a>,diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Content width.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Content width.mdindex 134975521e..c2a3117113 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Content width.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Content width.md@@ -1,5 +1,5 @@# Content width-Some note types such as <a class="reference-link" href="../../Note%20Types/Text.md">Text</a>, <a class="reference-link" href="../../Note%20Types/Relation%20Map.md">Relation Map</a>, and saved search intentionally limit the width of the content.+Some note types (such as <a class="reference-link" href="../../Note%20Types/Text.md">Text</a> and saved search) intentionally limit the width of the content.This might appear surprising at first, but the idea is to make text fit well on wider screens without appearing distorted. This is especially the case if the document contains <a class="reference-link" href="../../Note%20Types/Text/Images.md">Images</a>, tables or other width-dependent elements.