From 68682f90c0cae63cf9026ec2de5b26dc232d301c Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Thu, 7 Sep 2023 23:25:23 +0530 Subject: [PATCH] fix: update styles --- packages/nc-gui/components/cell/DatePicker.vue | 2 +- packages/nc-gui/components/cell/Decimal.vue | 2 +- packages/nc-gui/components/cell/Email.vue | 2 +- packages/nc-gui/components/cell/Float.vue | 2 +- packages/nc-gui/components/cell/Integer.vue | 2 +- packages/nc-gui/components/cell/Percent.vue | 2 +- packages/nc-gui/components/cell/TimePicker.vue | 2 +- packages/nc-gui/components/cell/YearPicker.vue | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/nc-gui/components/cell/DatePicker.vue b/packages/nc-gui/components/cell/DatePicker.vue index ca3dac123e..73ffd88987 100644 --- a/packages/nc-gui/components/cell/DatePicker.vue +++ b/packages/nc-gui/components/cell/DatePicker.vue @@ -201,7 +201,7 @@ const clickHandler = () => { { v-if="editEnabled" :ref="focus" v-model="vModel" - class="outline-none !py-2 !px-0 border-none rounded-md w-full h-full text-sm" + class="outline-none !py-2 !px-1 border-none rounded-md w-full h-full text-sm" type="number" :step="precision" style="letter-spacing: 0.06rem" diff --git a/packages/nc-gui/components/cell/Email.vue b/packages/nc-gui/components/cell/Email.vue index b5357325dc..55c323a18a 100644 --- a/packages/nc-gui/components/cell/Email.vue +++ b/packages/nc-gui/components/cell/Email.vue @@ -60,7 +60,7 @@ watch( v-if="editEnabled" :ref="focus" v-model="vModel" - class="w-full outline-none text-sm py-2" + class="w-full outline-none text-sm px-1 py-2" @blur="editEnabled = false" @keydown.down.stop @keydown.left.stop diff --git a/packages/nc-gui/components/cell/Float.vue b/packages/nc-gui/components/cell/Float.vue index f8c8296751..4ce8d50d6c 100644 --- a/packages/nc-gui/components/cell/Float.vue +++ b/packages/nc-gui/components/cell/Float.vue @@ -47,7 +47,7 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && props.isFocus && (e v-if="editEnabled" :ref="focus" v-model="vModel" - class="outline-none p-0 border-none w-full h-full text-sm" + class="outline-none px-1 border-none w-full h-full text-sm" type="number" step="0.1" @blur="editEnabled = false" diff --git a/packages/nc-gui/components/cell/Integer.vue b/packages/nc-gui/components/cell/Integer.vue index df5cfb1bff..89860e782e 100644 --- a/packages/nc-gui/components/cell/Integer.vue +++ b/packages/nc-gui/components/cell/Integer.vue @@ -84,7 +84,7 @@ function onKeyDown(e: any) { v-if="editEnabled" :ref="focus" v-model="vModel" - class="outline-none !py-2 px-0 border-none w-full h-full text-sm" + class="outline-none py-2 px-1 border-none w-full h-full text-sm" type="number" style="letter-spacing: 0.06rem" @blur="editEnabled = false" diff --git a/packages/nc-gui/components/cell/Percent.vue b/packages/nc-gui/components/cell/Percent.vue index 3189299743..45a2272b2b 100644 --- a/packages/nc-gui/components/cell/Percent.vue +++ b/packages/nc-gui/components/cell/Percent.vue @@ -38,7 +38,7 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && props.isFocus && (e v-if="editEnabled" :ref="focus" v-model="vModel" - class="w-full !border-none !outline-none focus:ring-0 text-base py-1" + class="w-full !border-none !outline-none focus:ring-0 text-base p-1" :class="{ '!px-2': editEnabled }" type="number" @blur="editEnabled = false" diff --git a/packages/nc-gui/components/cell/TimePicker.vue b/packages/nc-gui/components/cell/TimePicker.vue index bf1b974ac9..c3f99437d0 100644 --- a/packages/nc-gui/components/cell/TimePicker.vue +++ b/packages/nc-gui/components/cell/TimePicker.vue @@ -101,7 +101,7 @@ useSelectedCellKeyupListener(active, (e: KeyboardEvent) => { :bordered="false" use12-hours format="HH:mm" - class="!w-full !px-0 !border-none" + class="!w-full !px-1 !border-none" :class="{ 'nc-null': modelValue === null && showNull }" :placeholder="placeholder" :allow-clear="!readOnly && !localState && !isPk" diff --git a/packages/nc-gui/components/cell/YearPicker.vue b/packages/nc-gui/components/cell/YearPicker.vue index da4e5d637e..eb93f543d3 100644 --- a/packages/nc-gui/components/cell/YearPicker.vue +++ b/packages/nc-gui/components/cell/YearPicker.vue @@ -85,7 +85,7 @@ useSelectedCellKeyupListener(active, (e: KeyboardEvent) => { v-model:value="localState" picker="year" :bordered="false" - class="!w-full !px-0 !border-none" + class="!w-full !px-1 !border-none" :class="{ 'nc-null': modelValue === null && showNull }" :placeholder="placeholder" :allow-clear="!readOnly && !localState && !isPk"