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",
"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": {

View file

@ -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>
`;