mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-02 21:42:15 +08:00
feat(zen): toggle body class for zen
This commit is contained in:
parent
568a84f5d2
commit
5c81627112
@ -223,6 +223,8 @@ export type CommandMappings = {
|
|||||||
// Geomap
|
// Geomap
|
||||||
deleteFromMap: { noteId: string },
|
deleteFromMap: { noteId: string },
|
||||||
openGeoLocation: { noteId: string, event: JQuery.MouseDownEvent }
|
openGeoLocation: { noteId: string, event: JQuery.MouseDownEvent }
|
||||||
|
|
||||||
|
toggleZenMode: CommandData;
|
||||||
};
|
};
|
||||||
|
|
||||||
type EventMappings = {
|
type EventMappings = {
|
||||||
|
@ -178,6 +178,10 @@ export default class RootCommandExecutor extends Component {
|
|||||||
for (const window of windows) window[action]();
|
for (const window of windows) window[action]();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toggleZenModeCommand() {
|
||||||
|
$("body").toggleClass("zen");
|
||||||
|
}
|
||||||
|
|
||||||
firstTabCommand() {
|
firstTabCommand() {
|
||||||
this.#goToTab(1);
|
this.#goToTab(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user