1- import { Card , Col , Row , Timeline , Typography } from 'antd' ;
1+ import { Card , Timeline , Typography } from 'antd' ;
22import React from 'react' ;
33
44import { AppDefinition } from '../AppDefinition' ;
5- import Block from '../components/block/block' ;
65import changeLog from './changelog' ;
6+ import { Flex } from '@src/utils/components/flex' ;
77
88const ChangeLogApp : AppDefinition = {
99 name : 'ChangeLog' ,
@@ -15,32 +15,30 @@ export default ChangeLogApp;
1515
1616function ChangeLogPage ( ) {
1717 return (
18- < Row style = { { paddingTop : 16 } } justify = "center" >
19- < Col xs = { 24 } lg = { { span : 16 } } >
20- < Timeline mode = "left" style = { { width : '100%' } } >
21- { changeLog . map ( ( item , idx ) => (
22- < Timeline . Item style = { { paddingBottom : 60 } } key = { idx } >
23- < Card
24- style = { { padding : 16 , paddingBottom : 16 } }
25- title = {
26- < Typography . Title level = { 2 } >
27- { item . date . toDateString ( ) }
28- </ Typography . Title >
29- }
30- >
31- < Block >
32- < RenderCategory name = "Added" data = { item . added } />
33- < RenderCategory name = "Changed" data = { item . changed } />
34- < RenderCategory name = "Fixed" data = { item . fixed } />
35- < RenderCategory name = "Removed" data = { item . removed } />
36- < RenderCategory name = "Code" data = { item . code } />
37- </ Block >
38- </ Card >
39- </ Timeline . Item >
40- ) ) }
41- </ Timeline >
42- </ Col >
43- </ Row >
18+ < Flex down justifySelf = "center" align = "center" maxWidth = { 1000 } >
19+ < Timeline mode = "left" style = { { width : '100%' } } >
20+ { changeLog . map ( ( item , idx ) => (
21+ < Timeline . Item style = { { paddingBottom : 60 } } key = { idx } >
22+ < Card
23+ style = { { padding : 16 , paddingBottom : 16 } }
24+ title = {
25+ < Typography . Title level = { 2 } >
26+ { item . date . toDateString ( ) }
27+ </ Typography . Title >
28+ }
29+ >
30+ < Flex down >
31+ < RenderCategory name = "Added" data = { item . added } />
32+ < RenderCategory name = "Changed" data = { item . changed } />
33+ < RenderCategory name = "Fixed" data = { item . fixed } />
34+ < RenderCategory name = "Removed" data = { item . removed } />
35+ < RenderCategory name = "Code" data = { item . code } />
36+ </ Flex >
37+ </ Card >
38+ </ Timeline . Item >
39+ ) ) }
40+ </ Timeline >
41+ </ Flex >
4442 ) ;
4543}
4644
0 commit comments