From ec460685540954968a97f7603c3edc63bbb49701 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Tue, 26 Nov 2024 05:46:57 +0000 Subject: [PATCH] fix(nc-gui): show page does not exist if shared url is invalid --- packages/nc-gui/assets/style.scss | 8 ++ .../components/general/PageDoesNotExist.vue | 2 +- packages/nc-gui/composables/useSharedView.ts | 13 +++ packages/nc-gui/layouts/shared-view.vue | 109 +++++++++--------- .../[typeOrId]/calendar/[viewId]/index.vue | 4 +- .../pages/index/[typeOrId]/form/[viewId].vue | 7 +- .../[typeOrId]/gallery/[viewId]/index.vue | 4 +- .../[typeOrId]/kanban/[viewId]/index.vue | 4 +- .../index/[typeOrId]/map/[viewId]/index.vue | 4 +- .../pages/index/[typeOrId]/view/[viewId].vue | 4 +- 10 files changed, 97 insertions(+), 62 deletions(-) diff --git a/packages/nc-gui/assets/style.scss b/packages/nc-gui/assets/style.scss index f65a6f68f2..ff109c5c11 100644 --- a/packages/nc-gui/assets/style.scss +++ b/packages/nc-gui/assets/style.scss @@ -14,6 +14,14 @@ scrollbar-width: none; /* Firefox */ } } + + .nc-h-screen { + height: 100vh; + + @supports (height: 100dvh) { + height: 100dvh; + } + } } * { diff --git a/packages/nc-gui/components/general/PageDoesNotExist.vue b/packages/nc-gui/components/general/PageDoesNotExist.vue index 969f136361..d8980aa0ff 100644 --- a/packages/nc-gui/components/general/PageDoesNotExist.vue +++ b/packages/nc-gui/components/general/PageDoesNotExist.vue @@ -1,5 +1,5 @@