From 0b9fe01d4e51680710a834d4a9c63113a09ff86d Mon Sep 17 00:00:00 2001 From: Daniel Spaude Date: Thu, 29 Dec 2022 19:14:05 +0100 Subject: [PATCH] mobile optimisations - add mobile mode toggle button to left menu (WIP) --- packages/nc-gui/components.d.ts | 1 + .../nc-gui/components/smartsheet/Toolbar.vue | 9 +++-- .../qr-scanner-button/QrScannerButton.vue | 38 ++++++++----------- .../nc-gui/composables/useGlobal/actions.ts | 6 ++- .../nc-gui/composables/useGlobal/state.ts | 3 ++ .../nc-gui/composables/useGlobal/types.ts | 2 + packages/nc-gui/lang/en.json | 6 +++ .../pages/[projectType]/[projectId]/index.vue | 31 ++++++++++++--- 8 files changed, 63 insertions(+), 33 deletions(-) diff --git a/packages/nc-gui/components.d.ts b/packages/nc-gui/components.d.ts index 3c30c039eb..6ee9934478 100644 --- a/packages/nc-gui/components.d.ts +++ b/packages/nc-gui/components.d.ts @@ -102,6 +102,7 @@ declare module '@vue/runtime-core' { MaterialSymbolsFileCopyOutline: typeof import('~icons/material-symbols/file-copy-outline')['default'] MaterialSymbolsKeyboardReturn: typeof import('~icons/material-symbols/keyboard-return')['default'] MaterialSymbolsLightModeOutline: typeof import('~icons/material-symbols/light-mode-outline')['default'] + MaterialSymbolsMobileFriendly: typeof import('~icons/material-symbols/mobile-friendly')['default'] MaterialSymbolsRocketLaunchOutline: typeof import('~icons/material-symbols/rocket-launch-outline')['default'] MaterialSymbolsSendOutline: typeof import('~icons/material-symbols/send-outline')['default'] MaterialSymbolsTranslate: typeof import('~icons/material-symbols/translate')['default'] diff --git a/packages/nc-gui/components/smartsheet/Toolbar.vue b/packages/nc-gui/components/smartsheet/Toolbar.vue index 6d44c9a28d..2a028c286d 100644 --- a/packages/nc-gui/components/smartsheet/Toolbar.vue +++ b/packages/nc-gui/components/smartsheet/Toolbar.vue @@ -14,8 +14,11 @@ const { allowCSVDownload } = useSharedView()