diff --git a/packages/nc-gui/components/cell/Date/Readonly.vue b/packages/nc-gui/components/cell/Date/Readonly.vue index 66a671bb51..927405eef8 100644 --- a/packages/nc-gui/components/cell/Date/Readonly.vue +++ b/packages/nc-gui/components/cell/Date/Readonly.vue @@ -25,9 +25,9 @@ const localState = computed(() => { diff --git a/packages/nc-gui/components/cell/DateTime/Editor.vue b/packages/nc-gui/components/cell/DateTime/Editor.vue index 96510a3a27..fcbf1cec1e 100644 --- a/packages/nc-gui/components/cell/DateTime/Editor.vue +++ b/packages/nc-gui/components/cell/DateTime/Editor.vue @@ -1,6 +1,7 @@ @@ -75,10 +63,3 @@ const timeCellMaxWidth = computed(() => { - - diff --git a/packages/nc-gui/components/cell/DateTime/utils.ts b/packages/nc-gui/components/cell/DateTime/utils.ts new file mode 100644 index 0000000000..7acd07d81e --- /dev/null +++ b/packages/nc-gui/components/cell/DateTime/utils.ts @@ -0,0 +1,16 @@ +import { timeFormats } from 'nocodb-sdk' + +export const timeCellMaxWidthMap = { + [timeFormats[0]]: { + 12: 'max-w-[85px]', + 24: 'max-w-[65px]', + }, + [timeFormats[1]]: { + 12: 'max-w-[100px]', + 24: 'max-w-[80px]', + }, + [timeFormats[2]]: { + 12: 'max-w-[130px]', + 24: 'max-w-[110px]', + }, +} diff --git a/packages/nc-gui/components/cell/Year/Editor.vue b/packages/nc-gui/components/cell/Year/Editor.vue index 94bccdb5c0..fe91a284c0 100644 --- a/packages/nc-gui/components/cell/Year/Editor.vue +++ b/packages/nc-gui/components/cell/Year/Editor.vue @@ -317,7 +317,6 @@ function handleSelectDate(value?: dayjs.Dayjs) { -