From 344496b0c42ed3bb80daee5cf25127b6873ccc1b Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 26 Jun 2024 19:03:35 +0000 Subject: [PATCH] fix(nc-gui): card lookup attachment cell style update --- packages/nc-gui/components/smartsheet/Gallery.vue | 14 +++++++++++++- packages/nc-gui/components/smartsheet/Kanban.vue | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Gallery.vue b/packages/nc-gui/components/smartsheet/Gallery.vue index 52bced22c6..592298e1bd 100644 --- a/packages/nc-gui/components/smartsheet/Gallery.vue +++ b/packages/nc-gui/components/smartsheet/Gallery.vue @@ -563,8 +563,20 @@ watch( } &.nc-virtual-cell-lookup { .nc-lookup-cell { - @apply !h-5.5; + &:has(.nc-attachment-wrapper) { + @apply !h-auto; + .nc-attachment-cell { + @apply !h-auto; + + .nc-attachment-wrapper { + @apply py-0; + } + } + } + &:not(:has(.nc-attachment-wrapper)) { + @apply !h-5.5; + } .nc-cell-lookup-scroll { @apply py-0 h-auto; } diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index e4d932b97e..2596172f36 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -1315,8 +1315,20 @@ const handleSubmitRenameOrNewStack = async (loadMeta: boolean, stack?: any, stac } &.nc-virtual-cell-lookup { .nc-lookup-cell { - @apply !h-5.5; + &:has(.nc-attachment-wrapper) { + @apply !h-auto; + .nc-attachment-cell { + @apply !h-auto; + + .nc-attachment-wrapper { + @apply py-0; + } + } + } + &:not(:has(.nc-attachment-wrapper)) { + @apply !h-5.5; + } .nc-cell-lookup-scroll { @apply py-0 h-auto; }