@@ -68,7 +68,8 @@ class IngItem extends Component<IngItemProps, IngItemState> {
68
68
key = { id }
69
69
activityPersonas = { persons . map < IPersonaProps > ( imageUrl => ( { imageUrl } ) ) }
70
70
comments = { [
71
- content ,
71
+ // eslint-disable-next-line @typescript-eslint/naming-convention
72
+ < div dangerouslySetInnerHTML = { { __html : content } } > </ div > ,
72
73
icons ? (
73
74
< span /* eslint-disable-next-line @typescript-eslint/naming-convention */
74
75
dangerouslySetInnerHTML = { { __html : icons } }
@@ -93,10 +94,12 @@ class IngItem extends Component<IngItemProps, IngItemState> {
93
94
</ Link > ,
94
95
] }
95
96
timeStamp = { [
96
- formatDistanceStrict ( dateAdded , new Date ( ) , {
97
- locale : zhCN ,
98
- addSuffix : true ,
99
- } ) ,
97
+ < span title = { format ( dateAdded , 'yyyy-MM-dd HH:mm' ) } >
98
+ { formatDistanceStrict ( dateAdded , new Date ( ) , {
99
+ locale : zhCN ,
100
+ addSuffix : true ,
101
+ } ) }
102
+ </ span > ,
100
103
sendFrom > 0 ? (
101
104
< span className = "ml-[3px] inline-flex items-center" >
102
105
{ this . renderSendFromIcon ( sendFrom ) }
@@ -111,6 +114,7 @@ class IngItem extends Component<IngItemProps, IngItemState> {
111
114
lineHeight : 16 ,
112
115
display : 'flex' ,
113
116
alignItems : 'center' ,
117
+ fontSize : 'inherit' ,
114
118
} ,
115
119
activityText : {
116
120
color : 'inherit' ,
@@ -138,10 +142,13 @@ class IngItem extends Component<IngItemProps, IngItemState> {
138
142
) ;
139
143
}
140
144
141
- private renderComment = ( { userDisplayName, content, dateAdded, statusId, userId, id } : IngComment ) => (
142
- < div >
145
+ private renderComment = (
146
+ { userDisplayName, content, dateAdded, statusId, userId, id } : IngComment ,
147
+ index : number
148
+ ) => (
149
+ < div className = { `${ index > 0 ? 'mt-[3px]' : '' } leading-[1.5]` } >
143
150
< div className = "inline" >
144
- < span className = "whitespace-nowrap " >
151
+ < span className = "whitespace-nowrap" >
145
152
< Link > { userDisplayName } </ Link > :
146
153
</ span >
147
154
{ /* eslint-disable-next-line @typescript-eslint/naming-convention */ }
0 commit comments