From 34c390ffea062e9bb49a02c1431252ee6588a536 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Tue, 19 Sep 2023 14:37:35 +0530 Subject: [PATCH] fix: carousel style --- .../nc-gui/components/smartsheet/Gallery.vue | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Gallery.vue b/packages/nc-gui/components/smartsheet/Gallery.vue index bf424b835e..c139bac60e 100644 --- a/packages/nc-gui/components/smartsheet/Gallery.vue +++ b/packages/nc-gui/components/smartsheet/Gallery.vue @@ -75,9 +75,7 @@ const fieldsWithoutCover = computed(() => fields.value.filter((f) => f.id !== galleryData.value?.fk_cover_image_col_id && !isPrimary(f)), ) -const displayField = computed(() => - meta.value?.columns?.find((c) => c.pv) ?? meta.value?.columns ? meta.value?.columns[0] : null, -) +const displayField = computed(() => meta.value?.columns?.find((c) => c.pv) ?? null) const coverImageColumn: any = computed(() => meta.value?.columnsById @@ -261,7 +259,7 @@ watch( @contextmenu="showContextMenu($event, { row: rowIndex })" >