mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-19 13:20:36 +08:00
Make zen mode even more compact
This commit is contained in:
parent
0c818c038e
commit
12c24d39e7
@ -396,18 +396,16 @@ const zen: JupyterFrontEndPlugin<void> = {
|
||||
): void => {
|
||||
const { commands } = app;
|
||||
const elem = document.documentElement;
|
||||
const topArea = classicShell?.top;
|
||||
const menuArea = classicShell?.menu;
|
||||
|
||||
const toggleOn = () => {
|
||||
topArea?.setHidden(true);
|
||||
menuArea?.setHidden(true);
|
||||
classicShell?.collapseTop();
|
||||
classicShell?.menu.setHidden(true);
|
||||
zenModeEnabled = true;
|
||||
};
|
||||
|
||||
const toggleOff = () => {
|
||||
topArea?.setHidden(false);
|
||||
menuArea?.setHidden(false);
|
||||
classicShell?.expandTop();
|
||||
classicShell?.menu.setHidden(false);
|
||||
zenModeEnabled = false;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user