diff --git a/packages/nc-gui/components.d.ts b/packages/nc-gui/components.d.ts index 208fef4e85..ec39c7fb6f 100644 --- a/packages/nc-gui/components.d.ts +++ b/packages/nc-gui/components.d.ts @@ -120,6 +120,7 @@ declare module '@vue/runtime-core' { MdiChatProcessingOutline: typeof import('~icons/mdi/chat-processing-outline')['default'] MdiCheck: typeof import('~icons/mdi/check')['default'] MdiChevronDown: typeof import('~icons/mdi/chevron-down')['default'] + MdiChevronLeft: typeof import('~icons/mdi/chevron-left')['default'] MdiChevronRight: typeof import('~icons/mdi/chevron-right')['default'] MdiCircleMedium: typeof import('~icons/mdi/circle-medium')['default'] MdiClose: typeof import('~icons/mdi/close')['default'] diff --git a/packages/nc-gui/components/cell/Checkbox.vue b/packages/nc-gui/components/cell/Checkbox.vue index bab7742ebb..5445c3e983 100644 --- a/packages/nc-gui/components/cell/Checkbox.vue +++ b/packages/nc-gui/components/cell/Checkbox.vue @@ -36,6 +36,8 @@ const isForm = inject(IsFormInj) const isEditColumnMenu = inject(EditColumnInj, ref(false)) +const isGallery = inject(IsGalleryInj, ref(false)) + const readOnly = inject(ReadonlyInj) const checkboxMeta = computed(() => { @@ -80,18 +82,14 @@ useSelectedCellKeyupListener(active, (e) => {
-
+
fields.value.filter((f) => f.id !== galleryData.value?.fk_cover_image_col_id)) +const fieldsWithoutDisplay = computed(() => fields.value.filter((f) => !isPrimary(f))) + +const displayField = computed(() => meta.value?.columns?.find((c) => c.pv) ?? null) const coverImageColumn: any = computed(() => meta.value?.columnsById @@ -142,9 +146,8 @@ const expandForm = (row: RowType, state?: Record) => { const expandFormClick = async (e: MouseEvent, row: RowType) => { const target = e.target as HTMLElement - if (target && !target.closest('.gallery-carousel')) { - expandForm(row) - } + if (target.closest('.arrow') || target.closest('.slick-dots')) return + expandForm(row) } openNewRecordFormHook?.on(async () => { @@ -229,7 +232,7 @@ watch(
-