From fc424c1fccfaa30467097c8c47f1e538ad3bc67d Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 15 Sep 2022 15:19:19 +0530 Subject: [PATCH 1/3] feat(gui): fullscreen option to toggle nav drawers Signed-off-by: Pranav C --- packages/nc-gui/components.d.ts | 2 ++ .../smartsheet-toolbar/FullScreen.vue | 34 +++++++++++++++++++ .../nc-gui/components/smartsheet/Toolbar.vue | 2 ++ .../components/smartsheet/sidebar/index.vue | 2 -- 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 packages/nc-gui/components/smartsheet-toolbar/FullScreen.vue diff --git a/packages/nc-gui/components.d.ts b/packages/nc-gui/components.d.ts index 6eaa24df25..f17ae3eead 100644 --- a/packages/nc-gui/components.d.ts +++ b/packages/nc-gui/components.d.ts @@ -163,6 +163,8 @@ declare module '@vue/runtime-core' { MdiFlag: typeof import('~icons/mdi/flag')['default'] MdiFlashOutline: typeof import('~icons/mdi/flash-outline')['default'] MdiFolder: typeof import('~icons/mdi/folder')['default'] + MdiFullscreen: typeof import('~icons/mdi/fullscreen')['default'] + MdiFullscreenExit: typeof import('~icons/mdi/fullscreen-exit')['default'] MdiFunction: typeof import('~icons/mdi/function')['default'] MdiGestureDoubleTap: typeof import('~icons/mdi/gesture-double-tap')['default'] MdiGithub: typeof import('~icons/mdi/github')['default'] diff --git a/packages/nc-gui/components/smartsheet-toolbar/FullScreen.vue b/packages/nc-gui/components/smartsheet-toolbar/FullScreen.vue new file mode 100644 index 0000000000..f760cc713a --- /dev/null +++ b/packages/nc-gui/components/smartsheet-toolbar/FullScreen.vue @@ -0,0 +1,34 @@ + + + + + diff --git a/packages/nc-gui/components/smartsheet/Toolbar.vue b/packages/nc-gui/components/smartsheet/Toolbar.vue index a28d041cc1..0d7b81803f 100644 --- a/packages/nc-gui/components/smartsheet/Toolbar.vue +++ b/packages/nc-gui/components/smartsheet/Toolbar.vue @@ -43,6 +43,8 @@ const { allowCSVDownload } = useSharedView() + +