From a8bf1878ebe566ca35b84900485e67125d70a2ac Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Thu, 21 Dec 2023 13:51:29 +0530 Subject: [PATCH 01/11] fix: checkbox alignment issue in grid cell --- packages/nc-gui/components/cell/Checkbox.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/cell/Checkbox.vue b/packages/nc-gui/components/cell/Checkbox.vue index be70d8d314..5bf86c4058 100644 --- a/packages/nc-gui/components/cell/Checkbox.vue +++ b/packages/nc-gui/components/cell/Checkbox.vue @@ -42,6 +42,8 @@ const readOnly = inject(ReadonlyInj) const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false)) +const rowHeight = inject(RowHeightInj, ref()) + const checkboxMeta = computed(() => { return { icon: { @@ -89,11 +91,18 @@ useSelectedCellKeyupListener(active, (e) => { 'nc-cell-hover-show': !vModel && !readOnly, 'opacity-0': readOnly && !vModel, }" + :style="{ + height: isForm || isExpandedFormOpen || isGallery ? undefined : `max(${(rowHeight || 1) * 1.8}rem, 41px)`, + }" @click="onClick(false, $event)" >