From c207d0fbd8a11dfab166161f08bc241c983d12b8 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Tue, 9 Aug 2022 10:57:39 +0200 Subject: [PATCH] chore(gui-v2): update layout structure --- packages/nc-gui-v2/app.vue | 8 ++- .../components/cell/attachment/index.vue | 2 +- .../components/smartsheet/sidebar/index.vue | 2 +- packages/nc-gui-v2/layouts/base.vue | 49 +++++++++++++++---- packages/nc-gui-v2/layouts/default.vue | 8 +-- .../nc-gui-v2/pages/nc/[projectId]/index.vue | 26 +++++++--- .../pages/nc/[projectId]/index/index.vue | 2 +- packages/nc-gui-v2/tsconfig.json | 1 + 8 files changed, 69 insertions(+), 29 deletions(-) diff --git a/packages/nc-gui-v2/app.vue b/packages/nc-gui-v2/app.vue index facbf09cbd..28c63b040c 100644 --- a/packages/nc-gui-v2/app.vue +++ b/packages/nc-gui-v2/app.vue @@ -1,7 +1,5 @@ - - diff --git a/packages/nc-gui-v2/components/cell/attachment/index.vue b/packages/nc-gui-v2/components/cell/attachment/index.vue index 2d08110a85..38c359203f 100644 --- a/packages/nc-gui-v2/components/cell/attachment/index.vue +++ b/packages/nc-gui-v2/components/cell/attachment/index.vue @@ -60,7 +60,7 @@ onKeyDown('Escape', () => { /** if possible, on mounted we try to fetch the relevant `td` cell to use as a dropzone */ onMounted(() => { if (typeof document !== 'undefined') { - dropZoneRef.value = document.querySelector(`td[data-col="${column.id}"]`) as HTMLTableDataCellElement + dropZoneRef.value = document.querySelector(`td[data-col="${column.value.id}"]`) as HTMLTableDataCellElement } }) diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/index.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/index.vue index a329eaa5c4..ec8682807f 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/index.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/index.vue @@ -78,7 +78,7 @@ function onCreate(view: GridType | FormType | KanbanType | GalleryType) {
{