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; }