diff --git a/packages/nc-gui/components/cell/Checkbox.vue b/packages/nc-gui/components/cell/Checkbox.vue index 36c57dbc1c..1689d07fcf 100644 --- a/packages/nc-gui/components/cell/Checkbox.vue +++ b/packages/nc-gui/components/cell/Checkbox.vue @@ -84,7 +84,7 @@ useSelectedCellKeyupListener(active, (e) => { + + diff --git a/packages/nc-gui/components/cell/DatePicker.vue b/packages/nc-gui/components/cell/DatePicker.vue index 6c6568b4e8..39d807774b 100644 --- a/packages/nc-gui/components/cell/DatePicker.vue +++ b/packages/nc-gui/components/cell/DatePicker.vue @@ -7,6 +7,7 @@ import { ColumnInj, EditColumnInj, EditModeInj, + IsExpandedFormOpenInj, ReadonlyInj, computed, inject, @@ -41,6 +42,8 @@ const readOnly = inject(ReadonlyInj, ref(false)) const isEditColumn = inject(EditColumnInj, ref(false)) +const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false)) + const active = inject(ActiveCellInj, ref(false)) const editable = inject(EditModeInj, ref(false)) @@ -238,10 +241,10 @@ const clickHandler = () => { { :disabled="isColDisabled" :show-time="true" :bordered="false" - class="!w-full !px-0 !py-1 !border-none" - :class="{ 'nc-null': modelValue === null && showNull }" + class="!w-full !py-1 !border-none" + :class="{ 'nc-null': modelValue === null && showNull, '!px-2': isExpandedFormOpen, '!px-0': !isExpandedFormOpen }" :format="dateTimeFormat" :placeholder="placeholder" :allow-clear="!readOnly && !localState && !isPk" diff --git a/packages/nc-gui/components/cell/Decimal.vue b/packages/nc-gui/components/cell/Decimal.vue index 72398a3ff6..aad130039f 100644 --- a/packages/nc-gui/components/cell/Decimal.vue +++ b/packages/nc-gui/components/cell/Decimal.vue @@ -1,6 +1,6 @@