hide canvas buttons which don't work, #4182

This commit is contained in:
zadam 2023-08-18 15:33:20 +02:00
parent d706b3a447
commit b5ef09e779
2 changed files with 11 additions and 4 deletions

5
package-lock.json generated
View File

@ -1,12 +1,11 @@
{ {
"name": "trilium", "name": "trilium",
"version": "0.61.3-beta", "version": "0.61.4-beta",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "trilium", "version": "0.61.4-beta",
"version": "0.61.3-beta",
"hasInstallScript": true, "hasInstallScript": true,
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"dependencies": { "dependencies": {

View File

@ -35,10 +35,18 @@ const TPL = `
.CollabButton { .CollabButton {
display: none !important; 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> </style>
<!-- height here necessary. otherwise excalidraw not shown --> <!-- height here necessary. otherwise excalidraw not shown -->
<div class="canvas-render" style="height: 100%"></div> <div class="canvas-render" style="height: 100%"></div>
</div> </div>
`; `;