mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix for canvas theme after opening help
This commit is contained in:
parent
d6931f7441
commit
27570a7756
@ -187,7 +187,7 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
content = {
|
content = {
|
||||||
elements: [],
|
elements: [],
|
||||||
appState: [],
|
appState: {},
|
||||||
files: [],
|
files: [],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -376,7 +376,8 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
|
|||||||
ref: excalidrawWrapperRef
|
ref: excalidrawWrapperRef
|
||||||
},
|
},
|
||||||
React.createElement(Excalidraw.default, {
|
React.createElement(Excalidraw.default, {
|
||||||
theme: "light", // not in effect, but causes the theme toggle button to disappear
|
// this makes sure that 1) manual theme switch button is hidden 2) theme stays as it should after opening menu
|
||||||
|
theme: this.themeStyle,
|
||||||
ref: excalidrawRef,
|
ref: excalidrawRef,
|
||||||
width: dimensions.width,
|
width: dimensions.width,
|
||||||
height: dimensions.height,
|
height: dimensions.height,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user