feat(zen): toggle body class for zen

This commit is contained in:
Elian Doran 2025-02-14 13:55:04 +02:00
parent 568a84f5d2
commit 5c81627112
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View File

@ -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 = {

View File

@ -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);
} }