ui: 微調 時間顯示 文字

This commit is contained in:
CrescentLeaf
2025-10-02 20:49:00 +08:00
parent 15c4bcd48e
commit 20f12c97c1

View File

@@ -300,11 +300,14 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC
{
(date.getMinutes() != lastDate.getMinutes() || date.getDate() != lastDate.getDate() || date.getMonth() != lastDate.getMonth() || date.getFullYear() != lastDate.getFullYear())
&& <mdui-tooltip content={`${date.getFullYear()}${date.getMonth() + 1}${date.getDate()}${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`}>
<div>
<div style={{
fontSize: '87%',
marginTop: '10px',
}}>
{
(date.getFullYear() != lastDate.getFullYear() ? `${date.getFullYear()}` : '')
+ (date.getMonth() != lastDate.getMonth() ? `${date.getMonth() + 1}` : '')
+ (date.getDate() != lastDate.getDate() ? `${date.getDate()}` : '')
+ `${date.getMonth() + 1}`
+ `${date.getDate()}`
+ ` ${date.getHours()}:${date.getMinutes()}`
}
</div>