Skip to content

Build your personal knowledge base with Trilium Notes

hide canvas buttons which don't work, #4182

zadamb5ef09e77986
diff --git a/package-lock.json b/package-lock.json
index 0dfbc48434..ec78bc0674 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,11 @@
{
"name": "trilium",
- "version": "0.61.3-beta",
+ "version": "0.61.4-beta",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
- "name": "trilium",
- "version": "0.61.3-beta",
+ "version": "0.61.4-beta",
"hasInstallScript": true,
"license": "AGPL-3.0-only",
"dependencies": {
diff --git a/src/public/app/widgets/type_widgets/canvas.js b/src/public/app/widgets/type_widgets/canvas.js
index 5152babbc9..f0102ba79d 100644
--- a/src/public/app/widgets/type_widgets/canvas.js
+++ b/src/public/app/widgets/type_widgets/canvas.js
@@ -35,10 +35,18 @@ const TPL = `
.CollabButton {
display: none !important;
}
+
+ button[data-testid='save-button'], button[data-testid='json-export-button'] {
+ display: none !important; /* these exports don't work, user should use import/export dialog */
+ }
+
+ .library-button {
+ display: none !important; /* library won't work without extra support which isn't currently implemented */
+ }
</style>
<!-- height here necessary. otherwise excalidraw not shown -->
- <div class="canvas-render" style="height: 100%"></div>
+ <div class="canvas-render" style="height: 100%"></div>
</div>
`;