@@ -140,10 +140,7 @@ export const ChatMessage = ({
140140 < div
141141 onContextMenu = { ! isMobile ? handleContextMenu : undefined }
142142 onClick = { isMobile ? handleMessageClick : undefined }
143- className = { cn (
144- 'relative p-3 pt-2 pb-5 rounded-xl text-sm' ,
145- bubbleColor
146- ) }
143+ className = { cn ( 'relative p-3 pt-2 rounded-xl text-sm' , bubbleColor ) }
147144 >
148145 < span className = "text-primary" > { message . sender . name } </ span >
149146
@@ -154,21 +151,23 @@ export const ChatMessage = ({
154151 />
155152 ) }
156153
157- < div
158- dangerouslySetInnerHTML = { {
159- __html : DOMPurify . sanitize ( message . content )
160- } }
161- className = "kun-prose-message"
162- />
154+ < div className = "flex flex-wrap items-end gap-2" >
155+ < div
156+ dangerouslySetInnerHTML = { {
157+ __html : DOMPurify . sanitize ( message . content )
158+ } }
159+ className = "kun-prose-message"
160+ />
163161
164- < div className = "absolute bottom-1 right-2 text-xs text-default-400" >
165- { message . status === 'EDITED' && '已编辑 ' }
166- { format ( new Date ( message . created ) , 'HH:mm' ) }
162+ < div className = "ml-auto whitespace-nowrap text-xs text-default-400 translate-y-[4px]" >
163+ { message . status === 'EDITED' && '已编辑 ' }
164+ { format ( new Date ( message . created ) , 'HH:mm' ) }
165+ </ div >
167166 </ div >
168167 </ div >
169168
170169 { message . reaction && message . reaction . length > 0 && (
171- < div className = "flex flex-wrap items-center gap-x-2 gap-y-1 mt-1" >
170+ < div className = "grid grid-cols-5 gap-x-2 gap-y-1 mt-1" >
172171 { message . reaction . length < 3
173172 ? message . reaction . map ( ( r : ChatMessageReaction ) => (
174173 < Chip
0 commit comments