diff --git a/src/pages/env/index.tsx b/src/pages/env/index.tsx index c4e0ae2b..4c64bb0b 100644 --- a/src/pages/env/index.tsx +++ b/src/pages/env/index.tsx @@ -118,13 +118,17 @@ const Env = ({ headerStyle, isPhone, theme }: any) => { dataIndex: 'value', key: 'value', align: 'center' as const, - width: '44%', + width: '35%', ellipsis: { showTitle: false, }, render: (text: string, record: any) => { return ( - + {text} ); @@ -141,19 +145,23 @@ const Env = ({ headerStyle, isPhone, theme }: any) => { dataIndex: 'timestamp', key: 'timestamp', align: 'center' as const, - width: 164, + width: 165, ellipsis: { showTitle: false, }, render: (text: string, record: any) => { const language = navigator.language || navigator.languages[0]; const date = new Date(text) - .toLocaleString(language, { - hour12: false, - }) - .replace(' 24:', ' 00:') + .toLocaleString(language, { + hour12: false, + }) + .replace(' 24:', ' 00:'); return ( - + {date} ); @@ -528,7 +536,7 @@ const Env = ({ headerStyle, isPhone, theme }: any) => { dataSource={value} rowKey="_id" size="middle" - scroll={{ x: 768, y: tableScrollHeight }} + scroll={{ x: 1000, y: tableScrollHeight }} components={components} loading={loading} onRow={(record: any, index: number) => {