style(settings): 分组底色改为仅比面板灰一点;备份页并入分组
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 27s

This commit is contained in:
qiqi committed 2026-11-24 06:54:44 +08:00
1 parent 058090d60f
commit 4dddb09304
7 files changed
+26 -9

No files matched your search

+16 -7
View File
@@ -130,6 +130,13 @@ function makeImageLibSection (draft, setDraft, backfillOutputOriginals) {
)
}
// 设置分组(与 sections 里的 GSetGroup 同一套类名)
function SetGroup (props) {
return el('div', { className: 'iwb-gset-group' },
el('div', { className: 'iwb-gset-group-h' }, props.title),
el('div', { className: 'iwb-gset-group-body' }, props.children))
}
function SettingsModal(props) {
const [tab, setTab] = useState(props.initialTab || 'gen')
// 诊断页「刷新」:重读崩溃记录后需要一个自增值触发重渲染。
@@ -591,13 +598,15 @@ function SettingsModal(props) {
const autoBackupSection = Sections ? Sections.renderAutoBackupSection({
ab, fmtAgo, props,
}) : el('div', { className: 'iwb-hint' }, 'autoBackupSection 未就绪(请刷新页面)')
const backupTab = el('div', { className: 'iwb-section' },
el('div', { className: 'iwb-backup-inline-hint' }, '备份会导出所选数据;还原会覆盖当前数据并自动刷新页面。'),
BackupModalComp
? el(BackupModalComp, { embedded: true, onClose: props.onClose, onSaveNow: props.onSaveNow })
: el('div', { className: 'iwb-hint' }, '备份组件未就绪(请刷新页面)'),
// 桌面版没有这套「localStorage 快照」:真实数据在资料目录,快照价值近零 ⇒ 只在网页版显示
isDesk() ? null : autoBackupSection,
const backupTab = el('div', { className: 'iwb-gset-page' },
el(SetGroup, { title: '备份与还原' },
el('div', { className: 'iwb-gset-hint' }, '备份会导出所选数据;还原会覆盖当前数据并自动刷新页面。'),
BackupModalComp
? el(BackupModalComp, { embedded: true, onClose: props.onClose, onSaveNow: props.onSaveNow })
: el('div', { className: 'iwb-hint' }, '备份组件未就绪(请刷新页面)'),
// 桌面版没有这套「localStorage 快照」:真实数据在资料目录,快照价值近零 ⇒ 只在网页版显示
isDesk() ? null : autoBackupSection,
),
)
// 可拖动窗口 + 外观实时预览(实现见 src/ui-modal-drag.js)