fix(export): clarify text batch dialog copy

This commit is contained in:
aits2026
2026-03-06 14:23:54 +08:00
parent 98a3b06e56
commit 5b6be864fd
2 changed files with 21 additions and 5 deletions

View File

@@ -2794,6 +2794,19 @@
} }
} }
.dialog-header-copy {
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.dialog-header-note {
font-size: 12px;
line-height: 1.45;
color: var(--text-secondary);
}
.close-icon-btn { .close-icon-btn {
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
background: var(--bg-secondary); background: var(--bg-secondary);

View File

@@ -4921,9 +4921,7 @@ function ExportPage() {
const shouldShowFormatSection = !isContentScopeDialog || isContentTextDialog const shouldShowFormatSection = !isContentScopeDialog || isContentTextDialog
const shouldShowMediaSection = !isContentScopeDialog const shouldShowMediaSection = !isContentScopeDialog
const avatarExportStatusLabel = options.exportAvatars ? '已开启聊天消息导出带头像' : '已关闭聊天消息导出带头像' const avatarExportStatusLabel = options.exportAvatars ? '已开启聊天消息导出带头像' : '已关闭聊天消息导出带头像'
const textContentFormatNote = options.exportAvatars const contentTextDialogSummary = '此模式只导出聊天文本,不包含图片语音视频表情包等多媒体文件。'
? '此模式包含用户头像,不导出图片语音视频表情包等多媒体内容'
: '此模式不包含用户头像,不导出图片语音视频表情包等多媒体内容'
const activeDialogFormatLabel = exportDialog.scope === 'sns' const activeDialogFormatLabel = exportDialog.scope === 'sns'
? (snsFormatOptions.find(option => option.value === snsExportFormat)?.label ?? snsExportFormat) ? (snsFormatOptions.find(option => option.value === snsExportFormat)?.label ?? snsExportFormat)
: (formatOptions.find(option => option.value === options.format)?.label ?? options.format) : (formatOptions.find(option => option.value === options.format)?.label ?? options.format)
@@ -6059,7 +6057,12 @@ function ExportPage() {
<div className="export-dialog-overlay" onClick={closeExportDialog}> <div className="export-dialog-overlay" onClick={closeExportDialog}>
<div className="export-dialog" role="dialog" aria-modal="true" onClick={(event) => event.stopPropagation()}> <div className="export-dialog" role="dialog" aria-modal="true" onClick={(event) => event.stopPropagation()}>
<div className="dialog-header"> <div className="dialog-header">
<h3>{exportDialog.title}</h3> <div className="dialog-header-copy">
<h3>{exportDialog.title}</h3>
{isContentTextDialog && (
<div className="dialog-header-note">{contentTextDialogSummary}</div>
)}
</div>
<button className="close-icon-btn" onClick={closeExportDialog}><X size={16} /></button> <button className="close-icon-btn" onClick={closeExportDialog}><X size={16} /></button>
</div> </div>
@@ -6121,7 +6124,7 @@ function ExportPage() {
<div className="format-note">{avatarExportStatusLabel}</div> <div className="format-note">{avatarExportStatusLabel}</div>
)} )}
{isContentTextDialog && ( {isContentTextDialog && (
<div className="format-note">{textContentFormatNote}</div> <div className="format-note">{avatarExportStatusLabel}</div>
)} )}
{!useCollapsedSessionFormatSelector && ( {!useCollapsedSessionFormatSelector && (
<div className="format-grid"> <div className="format-grid">