diff --git a/src/pages/SettingsPage.scss b/src/pages/SettingsPage.scss index b121249..eccde56 100644 --- a/src/pages/SettingsPage.scss +++ b/src/pages/SettingsPage.scss @@ -915,6 +915,29 @@ color: var(--text-secondary); } +.insight-collapsible-setting { + display: grid; + grid-template-rows: 0fr; + opacity: 0; + transform: translateY(-4px); + transition: grid-template-rows 0.22s ease, opacity 0.18s ease, transform 0.2s ease; + + &.expanded { + grid-template-rows: 1fr; + opacity: 1; + transform: translateY(0); + } + + &.collapsed { + pointer-events: none; + } +} + +.insight-collapsible-setting-inner { + min-height: 0; + overflow: hidden; +} + /* Premium Switch Style */ .switch { position: relative; @@ -3616,22 +3639,35 @@ } &.insight-social-tab { + --insight-moments-column-width: 76px; + --insight-social-column-width: minmax(220px, 300px); + --insight-status-column-width: 82px; + --insight-social-list-grid: minmax(0, 1fr) var(--insight-moments-column-width) var(--insight-social-column-width) var(--insight-status-column-width); + .anti-revoke-list-header { - grid-template-columns: minmax(0, 1fr) 86px minmax(240px, 340px) auto; + grid-template-columns: var(--insight-social-list-grid); + gap: 14px; .insight-moments-column-title { + display: flex; + justify-content: center; color: var(--text-tertiary); - text-align: center; } .insight-social-column-title { + min-width: 0; + color: var(--text-tertiary); + } + + .anti-revoke-status-column-title { + justify-self: end; color: var(--text-tertiary); } } .anti-revoke-row { display: grid; - grid-template-columns: minmax(0, 1fr) 86px minmax(240px, 340px) auto; + grid-template-columns: var(--insight-social-list-grid); align-items: center; gap: 14px; } @@ -3772,9 +3808,10 @@ } .anti-revoke-row-status { - justify-self: flex-end; + justify-self: end; align-items: flex-end; max-width: none; + min-width: 0; } } diff --git a/src/pages/SettingsPage.tsx b/src/pages/SettingsPage.tsx index f375f22..0980328 100644 --- a/src/pages/SettingsPage.tsx +++ b/src/pages/SettingsPage.tsx @@ -3322,27 +3322,30 @@ function SettingsPage({ onClose }: SettingsPageProps = {}) { - {aiInsightAllowContext && ( -
- - - 发送给 AI 的聊天记录最大条数。条数越多分析越准确,token 消耗也越多。 - - { - const val = Math.max(1, Math.min(200, parseInt(e.target.value, 10) || 40)) - setAiInsightContextCount(val) - scheduleConfigSave('aiInsightContextCount', () => configService.setAiInsightContextCount(val)) - }} - style={{ width: 100 }} - /> +
+
+
+ + + 发送给 AI 的聊天记录最大条数。条数越多分析越准确,token 消耗也越多。 + + { + const val = Math.max(1, Math.min(200, parseInt(e.target.value, 10) || 40)) + setAiInsightContextCount(val) + scheduleConfigSave('aiInsightContextCount', () => configService.setAiInsightContextCount(val)) + }} + style={{ width: 100 }} + /> +
- )} +
@@ -3369,27 +3372,30 @@ function SettingsPage({ onClose }: SettingsPageProps = {}) {
- {aiInsightAllowMomentsContext && ( -
- - - 仅提取人类可读文本原文,不会拼接朋友圈原始 XML 字段。 - - { - const val = Math.max(1, Math.min(20, parseInt(e.target.value, 10) || 5)) - setAiInsightMomentsContextCount(val) - scheduleConfigSave('aiInsightMomentsContextCount', () => configService.setAiInsightMomentsContextCount(val)) - }} - style={{ width: 100 }} - /> +
+
+
+ + + 仅提取人类可读文本原文,不会拼接朋友圈原始 XML 字段。 + + { + const val = Math.max(1, Math.min(20, parseInt(e.target.value, 10) || 5)) + setAiInsightMomentsContextCount(val) + scheduleConfigSave('aiInsightMomentsContextCount', () => configService.setAiInsightMomentsContextCount(val)) + }} + style={{ width: 100 }} + /> +
- )} +
@@ -3428,29 +3434,32 @@ function SettingsPage({ onClose }: SettingsPageProps = {}) { )}
- {aiInsightAllowSocialContext && ( -
- - - 当前仅支持微博最近发帖。 -
- 不建议超过 5,避免触发平台风控。 -
- { - const val = Math.max(1, Math.min(5, parseInt(e.target.value, 10) || 3)) - setAiInsightSocialContextCount(val) - scheduleConfigSave('aiInsightSocialContextCount', () => configService.setAiInsightSocialContextCount(val)) - }} - style={{ width: 100 }} - /> +
+
+
+ + + 当前仅支持微博最近发帖。 +
+ 不建议超过 5,避免触发平台风控。 +
+ { + const val = Math.max(1, Math.min(5, parseInt(e.target.value, 10) || 3)) + setAiInsightSocialContextCount(val) + scheduleConfigSave('aiInsightSocialContextCount', () => configService.setAiInsightSocialContextCount(val)) + }} + style={{ width: 100 }} + /> +
- )} +
{/* 自定义 System Prompt */} @@ -3728,7 +3737,7 @@ function SettingsPage({ onClose }: SettingsPageProps = {}) { 对话({filteredSessions.length}) 朋友圈 社交平台(微博) - 状态 + 状态
{filteredSessions.map((session) => { const isSelected = aiInsightFilterList.has(session.username)