fix: 优化移动端导出消息布局与计数

- 调整移动端消息栈宽度,统一约束来源标签与消息内容\n- 精简档案计数文案,移除虚拟窗口已显示数量\n- 补充搜索前后消息保持单行展示的移动端回归测试
This commit is contained in:
Nanin
2026-08-06 21:32:17 +08:00
parent 307d247660
commit 88a6d750fb
3 changed files with 24 additions and 20 deletions
+3 -5
View File
@@ -789,8 +789,8 @@ body {
overscroll-behavior-x: none;
touch-action: pan-y;
}
.message:not(.system) .bubble { max-width: calc(100% - 50px); }
.message:not(.system) .row.has-locate .bubble { max-width: calc(100% - 90px); }
.message:not(.system) .message-stack { max-width: calc(100% - 50px); }
.message:not(.system) .row.has-locate .message-stack { max-width: calc(100% - 90px); }
.audio-wrap { width: min(260px, 100%); }
}
`
@@ -1367,12 +1367,10 @@ const renderExportScript = (name: string): string => `
})
}
const updateCount = () => {
const shown = Math.max(0, windowEnd - windowStart)
const scopeTotal = activeConversation === 'all'
? allMessages.length
: allMessages.filter((message) => message.exportConversationId === activeConversation).length
const scopeLabel = activeConversation === 'all' ? '全部' : '当前聊天'
count.textContent = '已显示 ' + shown + ' / 筛选 ' + filtered.length + ' / ' + scopeLabel + ' ' + scopeTotal
count.textContent = '筛选 ' + filtered.length + ' / 全部 ' + scopeTotal
}
const setScrollTop = (value) => {
scrollLoadSuppressed = true