feat(ai-chat): 优化历史消息时间显示与搜索定位

- 时间显示人性化:昨天/前天/跨年日期
- 搜索上下导航修复 scroll-into-view 触发逻辑
This commit is contained in:
2026-05-19 09:28:29 +08:00
parent 861c43a428
commit 70fbdce641
3 changed files with 47 additions and 27 deletions

View File

@@ -8,6 +8,11 @@ export const lang = {
send: 'Send',
retry: 'Retry',
// ====== Time Format ======
timeFormatToday: 'Today',
timeFormatYesterday: 'Yesterday',
timeFormatBeforeYesterday: 'Day before yesterday',
// ====== ai-chat-message ======
aiNickname: 'AI Assistant',
defaultNickname: 'Me',

View File

@@ -8,6 +8,11 @@ export const lang = {
send: '发送',
retry: '重试',
// ====== 时间格式化 ======
timeFormatToday: '今天',
timeFormatYesterday: '昨天',
timeFormatBeforeYesterday: '前天',
// ====== ai-chat-message ======
aiNickname: '智能助手',
defaultNickname: '我',