mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 12:36:43 +00:00
fix(nc-gui): date, year cell content truncate issue
This commit is contained in:
16
packages/nc-gui/components/cell/DateTime/utils.ts
Normal file
16
packages/nc-gui/components/cell/DateTime/utils.ts
Normal file
@@ -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]',
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user