Skip to content

Build your personal knowledge base with Trilium Notes

fix render note attributes

zadamf3e7e6bbe78b
diff --git a/package-lock.json b/package-lock.json
index cac6ad0b2b..5e6439f31f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -115,8 +115,8 @@
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz",
"integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==",
"requires": {
- "base64-js": "1.3.0",
- "ieee754": "1.1.12"
+ "base64-js": "^1.0.2",
+ "ieee754": "^1.1.4"
}
},
"file-type": {
diff --git a/src/public/javascripts/services/note_detail.js b/src/public/javascripts/services/note_detail.js
index ccfc226d55..86ed3c3976 100644
--- a/src/public/javascripts/services/note_detail.js
+++ b/src/public/javascripts/services/note_detail.js
@@ -81,10 +81,6 @@ async function saveNotesIfChanged() {
/** @type {TabContext[]} */
let tabContexts = [];
-function getActiveComponent() {
- return getActiveTabContext().getComponent();
-}
-
function getActiveEditor() {
const activeTabContext = getActiveTabContext();
@@ -496,7 +492,6 @@ export default {
getActiveEditor,
isActive,
activateTabContext,
- getActiveComponent,
clearOpenTabsTask,
filterTabs
};
\ No newline at end of file
diff --git a/src/public/javascripts/services/note_detail_render.js b/src/public/javascripts/services/note_detail_render.js
index 3c25035097..840c4ae17a 100644
--- a/src/public/javascripts/services/note_detail_render.js
+++ b/src/public/javascripts/services/note_detail_render.js
@@ -18,7 +18,7 @@ class NoteDetailRender {
}
async render() {
- const attributes = await attributeService.getAttributes();
+ const attributes = await this.ctx.attributes.getAttributes();
const renderNotes = attributes.filter(attr =>
attr.type === 'relation'
&& attr.name === 'renderNote'
diff --git a/src/public/stylesheets/desktop.css b/src/public/stylesheets/desktop.css
index c3ddea15db..4b2aab282b 100644
--- a/src/public/stylesheets/desktop.css
+++ b/src/public/stylesheets/desktop.css
@@ -45,7 +45,6 @@ body {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 60%;
- margin-top: 10px;
font-family: var(--tree-font-family);
font-size: var(--tree-font-size);
}