开发: 聊天页面修改
This commit is contained in:
@@ -16,9 +16,9 @@ export const ChatTime: React.FC<IChatTimeProps> = (props) => {
|
||||
const yesterday = new Date();
|
||||
yesterday.setDate(yesterday.getDate() - 1);
|
||||
const dayDiff =
|
||||
(Date.parse(
|
||||
(new Date(
|
||||
`${now.getFullYear()}-${padWith(now.getMonth() + 1)}-${padWith(now.getDate())} 00:00:00`,
|
||||
) -
|
||||
).getTime() -
|
||||
new Date(props.msgtime).getTime()) /
|
||||
(24 * 60 * 60 * 1000) +
|
||||
1;
|
||||
@@ -58,7 +58,7 @@ export const ChatTime: React.FC<IChatTimeProps> = (props) => {
|
||||
};
|
||||
|
||||
return (
|
||||
<div style={{ display: 'flex', justifyContent: 'center' }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'center', marginBottom: 12 }}>
|
||||
<div
|
||||
style={{
|
||||
background: '#DADADA',
|
||||
|
Reference in New Issue
Block a user