Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

feat(settings): 优化对话导入工作区 (#755)

Kagarie03bbaac0f30
diff --git a/apps/desktop/src/renderer/__tests__/sessionImportAutoScan.test.ts b/apps/desktop/src/renderer/__tests__/sessionImportAutoScan.test.ts
index 07086ed4f8..31b0044c18 100644
--- a/apps/desktop/src/renderer/__tests__/sessionImportAutoScan.test.ts
+++ b/apps/desktop/src/renderer/__tests__/sessionImportAutoScan.test.ts
@@ -42,7 +42,7 @@ describe('SessionImportSection initial scan', () => {
it('places project selection before the expand control and indents project child rows', () => {
expect(source).toContain('grid min-h-14 grid-cols-[16px_20px_minmax(0,1fr)_auto] items-center gap-x-2 px-4 py-2');
- expect(source).toContain('className="flex h-6 w-5 items-center justify-center rounded-md');
+ expect(source).toContain('className="flex h-6 w-5 items-center justify-center rounded-full');
expect(source).toMatch(
/checked=\{selectedCount === group\.items\.length\}[\s\S]*onClick=\{\(\) => toggleGroup\(group\.key\)\}/,
);
@@ -71,6 +71,13 @@ describe('SessionImportSection initial scan', () => {
);
});
+ it('keeps scan summary explanations visible instead of relying on pointer-only title tooltips', () => {
+ expect(source).toContain('mt-1 text-11 leading-[1.4] text-[var(--settings-section-desc)]');
+ expect(source).toMatch(/>\s*\{hint\}\s*<\/p>/);
+ expect(source).not.toContain('title={hint}');
+ expect(source).not.toContain('className="sr-only">{hint}</span>');
+ });
+
it('surfaces selections hidden by the current filters next to the import button', () => {
expect(source).toContain('const hiddenSelectedCount = selectedItems.length - visibleSelectedCount;');
expect(source).toMatch(
@@ -78,6 +85,15 @@ describe('SessionImportSection initial scan', () => {
);
});
+ it('keeps metadata pills on one line and lets long session titles truncate instead of stretching rows', () => {
+ expect(source).toContain(
+ 'shrink-0 whitespace-nowrap rounded-full border border-[var(--settings-input-border)]',
+ );
+ expect(source).toContain(
+ 'min-w-0 flex-1 truncate text-13 font-medium text-[var(--settings-section-sublabel)]',
+ );
+ });
+
it('uses the sidebar time formatter for project and session-row timestamps', () => {
expect(source).toContain(
"import { formatSidebarTime, formatSidebarTimeAbsolute } from '@/features/cc-agent/lib/formatSidebarTime';",
diff --git a/apps/desktop/src/renderer/components/settings/AboutSection.tsx b/apps/desktop/src/renderer/components/settings/AboutSection.tsx
index 2e261564da..6214bae091 100644
--- a/apps/desktop/src/renderer/components/settings/AboutSection.tsx
+++ b/apps/desktop/src/renderer/components/settings/AboutSection.tsx
@@ -97,13 +97,14 @@ export function AboutSection() {
return (
<div className="flex flex-col gap-3">
- <h2 className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">
- {t('settings.about.title')}
- </h2>
-
- <p className="text-13 leading-[1.6] text-[var(--settings-section-desc)]">
- {t('settings.about.description')}
- </p>
+ <div className="flex flex-col gap-1">
+ <h2 className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">
+ {t('settings.about.title')}
+ </h2>
+ <p className="text-13 leading-[1.5] text-[var(--settings-section-desc)]">
+ {t('settings.about.description')}
+ </p>
+ </div>
{/* Info Card */}
<div
diff --git a/apps/desktop/src/renderer/components/settings/CollaborationSection.tsx b/apps/desktop/src/renderer/components/settings/CollaborationSection.tsx
index 2571d98090..0aef3e97ba 100644
--- a/apps/desktop/src/renderer/components/settings/CollaborationSection.tsx
+++ b/apps/desktop/src/renderer/components/settings/CollaborationSection.tsx
@@ -45,16 +45,16 @@ export function CollaborationSection() {
if (!settings) {
return (
- <div className="px-1 py-8 text-center text-13 text-[var(--text-tertiary)]">
+ <div className="py-8 text-center text-13 text-[var(--text-tertiary)]">
{t('settings.collaboration.loading')}
</div>
);
}
return (
- <div className="flex flex-col gap-6 px-1">
+ <div className="flex flex-col gap-6">
<div className="flex items-center justify-between gap-3">
- <h2 className="text-15 font-medium text-[var(--text-primary)]">
+ <h2 className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">
{t('settings.collaboration.title')}
</h2>
<DefaultOverrideControls
diff --git a/apps/desktop/src/renderer/components/settings/HelpSection.tsx b/apps/desktop/src/renderer/components/settings/HelpSection.tsx
index d51dc7ae93..5075586fa0 100644
--- a/apps/desktop/src/renderer/components/settings/HelpSection.tsx
+++ b/apps/desktop/src/renderer/components/settings/HelpSection.tsx
@@ -21,13 +21,14 @@ export function HelpSection({ onAskHelp }: HelpSectionProps) {
return (
<div className="flex flex-col gap-3">
- <h2 className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">
- {t('settings.help.title')}
- </h2>
-
- <p className="text-13 leading-[1.6] text-[var(--settings-section-desc)]">
- {t('settings.help.description')}
- </p>
+ <div className="flex flex-col gap-1">
+ <h2 className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">
+ {t('settings.help.title')}
+ </h2>
+ <p className="text-13 leading-[1.5] text-[var(--settings-section-desc)]">
+ {t('settings.help.description')}
+ </p>
+ </div>
<div className={cardClass}>
<div className="flex items-start gap-3">
diff --git a/apps/desktop/src/renderer/components/settings/ImBotSection.tsx b/apps/desktop/src/renderer/components/settings/ImBotSection.tsx
index 74f3eb6aba..340eef8b26 100644
--- a/apps/desktop/src/renderer/components/settings/ImBotSection.tsx
+++ b/apps/desktop/src/renderer/components/settings/ImBotSection.tsx
@@ -96,9 +96,9 @@ export function ImBotSection({
const effectiveGroup = cindyGroupAvailable ? group : 'personal';
return (
- <div className="flex flex-col gap-2 px-1">
+ <div className="flex flex-col gap-2">
<div className="flex items-center gap-2">
- <h2 className="text-15 font-medium text-[var(--text-primary)]">
+ <h2 className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">
{t('settings.sections.imBot')}
</h2>
<span className="rounded-full border border-[var(--settings-badge-border)] bg-[var(--settings-badge-bg)] px-2 py-[1px] text-10 font-medium uppercase leading-[1.5] tracking-wide text-[var(--text-secondary)]">
diff --git a/apps/desktop/src/renderer/components/settings/ProvidersSection.tsx b/apps/desktop/src/renderer/components/settings/ProvidersSection.tsx
index 61bf1d1a1e..7b28324777 100644
--- a/apps/desktop/src/renderer/components/settings/ProvidersSection.tsx
+++ b/apps/desktop/src/renderer/components/settings/ProvidersSection.tsx
@@ -1359,14 +1359,14 @@ export function ProvidersSection() {
return (
<div className="flex flex-col gap-[14px]">
- <div className="flex flex-col gap-1.5">
+ <div className="flex flex-col gap-1">
<h2
- className="text-18 font-semibold leading-[1.2]"
+ className="text-16 font-medium leading-[1.2]"
style={{ color: 'var(--settings-section-title)' }}
>
{t('settings.providers.title')}
</h2>
- <p className="text-13 leading-snug" style={{ color: 'var(--settings-section-desc)' }}>
+ <p className="text-13 leading-[1.5]" style={{ color: 'var(--settings-section-desc)' }}>
{t('settings.providers.subtitle')}
</p>
</div>
diff --git a/apps/desktop/src/renderer/components/settings/RemoteControlSection.tsx b/apps/desktop/src/renderer/components/settings/RemoteControlSection.tsx
index 167bd04ccd..64ef2bdf6f 100644
--- a/apps/desktop/src/renderer/components/settings/RemoteControlSection.tsx
+++ b/apps/desktop/src/renderer/components/settings/RemoteControlSection.tsx
@@ -225,12 +225,12 @@ export function RemoteControlSection() {
const sshSum = sshSummary(hosts, t);
return (
- <div className="flex flex-col gap-2 px-1">
+ <div className="flex flex-col gap-2">
<div className="flex flex-col gap-1">
- <h2 className="text-15 font-medium text-[var(--text-primary)]">
+ <h2 className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">
{t('settings.remoteControl.title')}
</h2>
- <p className="text-12 text-[var(--text-tertiary)]">
+ <p className="text-13 leading-[1.5] text-[var(--settings-section-desc)]">
{t('settings.remoteControl.description')}
</p>
</div>
diff --git a/apps/desktop/src/renderer/components/settings/SessionImportSection.tsx b/apps/desktop/src/renderer/components/settings/SessionImportSection.tsx
index db599130c1..07611086f4 100644
--- a/apps/desktop/src/renderer/components/settings/SessionImportSection.tsx
+++ b/apps/desktop/src/renderer/components/settings/SessionImportSection.tsx
@@ -167,22 +167,22 @@ export function SessionImportSection() {
}, [runScan, selectedItems, t]);
return (
- <div className="flex flex-col gap-[14px]">
- <div className="flex items-start justify-between gap-4">
- <div className="flex min-w-0 flex-col gap-1">
+ <div className="flex h-full min-h-0 w-full min-w-0 flex-col gap-4">
+ <header className="flex shrink-0 flex-col items-stretch justify-between gap-3 xl:flex-row xl:items-end xl:gap-6">
+ <div className="flex min-w-0 max-w-[620px] flex-col gap-1">
<h2 className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">
{t('settings.sessionImport.title')}
</h2>
- <p className="max-w-[720px] text-13 leading-[1.5] text-[var(--settings-section-desc)]">
+ <p className="text-13 leading-[1.5] text-[var(--settings-section-desc)]">
{t('settings.sessionImport.description')}
</p>
</div>
- <div className="flex shrink-0 items-center gap-2">
+ <div className="flex shrink-0 items-center justify-end gap-2 select-none">
<button
type="button"
onClick={() => setShareWizardOpen(true)}
className={cn(
- 'inline-flex h-9 shrink-0 items-center gap-2 rounded-md px-3 text-13 font-medium',
+ 'inline-flex h-10 shrink-0 items-center gap-2 rounded-full px-4 text-13 font-medium active:scale-[0.98]',
'border border-[var(--settings-btn-secondary-border)]',
'bg-[var(--settings-btn-secondary-bg)] text-[var(--settings-btn-secondary-text)]',
'transition-colors hover:bg-[var(--settings-menu-bg-hover)]',
@@ -196,17 +196,17 @@ export function SessionImportSection() {
onClick={() => runScan({ force: true })}
disabled={scanning}
className={cn(
- 'inline-flex h-9 shrink-0 items-center gap-2 rounded-md px-3 text-13 font-medium',
- 'border border-[var(--settings-btn-secondary-border)]',
- 'bg-[var(--settings-btn-secondary-bg)] text-[var(--settings-btn-secondary-text)]',
- 'transition-colors hover:bg-[var(--settings-menu-bg-hover)] disabled:cursor-not-allowed disabled:opacity-60',
+ 'inline-flex h-10 shrink-0 items-center gap-2 rounded-full px-5 text-13 font-medium active:scale-[0.98]',
+ 'border border-[var(--settings-btn-primary-border)]',
+ 'bg-[var(--settings-btn-primary-bg)] text-[var(--settings-btn-primary-text)]',
+ 'transition-colors hover:bg-[var(--settings-btn-primary-hover-bg)] disabled:cursor-not-allowed disabled:opacity-60',
)}
>
<Spinner icon={RefreshCw} size={15} spinning={scanning} />
{scanning ? t('settings.sessionImport.scanning') : t('settings.sessionImport.scan')}
</button>
</div>
- </div>
+ </header>
{shareWizardOpen && (
<SessionShareImportWizard open={shareWizardOpen} onOpenChange={setShareWizardOpen} />
@@ -214,12 +214,12 @@ export function SessionImportSection() {
<div
className={cn(
- 'rounded-xl border border-[var(--settings-theme-card-border)]',
- 'bg-[var(--settings-theme-card-bg)] p-5',
+ 'flex min-h-0 flex-1 flex-col overflow-hidden rounded-xl',
+ 'border border-[var(--settings-theme-card-border)] bg-[var(--settings-theme-card-bg)]',
)}
>
{!scan ? (
- <div className="flex min-h-[220px] flex-col items-center justify-center gap-3 text-center">
+ <div className="flex min-h-0 flex-1 flex-col items-center justify-center gap-3 p-6 text-center">
<Download size={24} className="text-[var(--settings-section-title)] opacity-70" />
<div className="flex max-w-[420px] flex-col gap-1">
<p className="text-13 font-medium text-[var(--settings-section-sublabel)]">
@@ -231,18 +231,20 @@ export function SessionImportSection() {
</div>
</div>
) : (
- <div className="flex flex-col gap-4">
- <ScanSummary scan={scan} />
- <FilterBar
- sourceValue={sourceFilter}
- placementValue={placementFilter}
- onSourceChange={setSourceFilter}
- onPlacementChange={setPlacementFilter}
- />
-
- <div className="flex flex-col rounded-lg border border-[var(--settings-input-border)]">
+ <div className="flex min-h-0 flex-1 flex-col">
+ <div className="flex shrink-0 flex-col gap-3 border-b border-[var(--settings-input-border)] p-4">
+ <ScanSummary scan={scan} />
+ <FilterBar
+ sourceValue={sourceFilter}
+ placementValue={placementFilter}
+ onSourceChange={setSourceFilter}
+ onPlacementChange={setPlacementFilter}
+ />
+ </div>
+
+ <div className="flex min-h-0 flex-1 flex-col">
{listItems.length > 0 && (
- <label className="flex cursor-pointer items-center gap-2 border-b border-[var(--settings-input-border)] px-4 py-2.5 hover:bg-[var(--settings-menu-bg-hover)]">
+ <label className="flex shrink-0 cursor-pointer items-center gap-2 border-b border-[var(--settings-input-border)] px-4 py-2.5 hover:bg-[var(--settings-menu-bg-hover)] select-none">
<input
type="checkbox"
checked={visibleCandidates.length > 0 && visibleSelectedCount === visibleCandidates.length}
@@ -260,9 +262,9 @@ export function SessionImportSection() {
</span>
</label>
)}
- <div className="flex max-h-[520px] flex-col overflow-y-auto">
+ <div className="flex min-h-0 flex-1 flex-col overflow-y-auto [scrollbar-gutter:stable]">
{listItems.length === 0 ? (
- <div className="px-4 py-10 text-center text-12 text-[var(--settings-section-desc)]">
+ <div className="flex min-h-[160px] flex-1 items-center justify-center px-4 py-10 text-center text-12 text-[var(--settings-section-desc)]">
{t('settings.sessionImport.noCandidates')}
</div>
) : (
@@ -303,7 +305,7 @@ export function SessionImportSection() {
<button
type="button"
onClick={() => toggleGroup(group.key)}
- className="flex h-6 w-5 items-center justify-center rounded-md text-[var(--settings-section-sublabel)] hover:bg-[var(--settings-menu-bg-hover)]"
+ className="flex h-6 w-5 items-center justify-center rounded-full text-[var(--settings-section-sublabel)] hover:bg-[var(--settings-menu-bg-hover)] active:scale-[0.98]"
aria-label={isOpen ? t('settings.sessionImport.collapse') : t('settings.sessionImport.expand')}
>
{isOpen ? <ChevronDown size={16} /> : <ChevronRight size={16} />}
@@ -354,7 +356,7 @@ export function SessionImportSection() {
</div>
</div>
- <div className="flex items-center justify-between gap-3">
+ <footer className="flex shrink-0 items-center justify-between gap-3 border-t border-[var(--settings-input-border)] px-4 py-3 select-none">
<p className="text-12 text-[var(--settings-section-desc)]">
{t('settings.sessionImport.selected', { count: selectedItems.length })}
{hiddenSelectedCount > 0 && (
@@ -366,7 +368,7 @@ export function SessionImportSection() {
onClick={importSelected}
disabled={selectedItems.length === 0 || importing}
className={cn(
- 'inline-flex h-9 items-center gap-2 rounded-md px-3 text-13 font-medium',
+ 'inline-flex h-10 items-center gap-2 rounded-full px-5 text-13 font-medium active:scale-[0.98]',
'border border-[var(--settings-btn-primary-border)]',
'bg-[var(--settings-btn-primary-bg)] text-[var(--settings-btn-primary-text)]',
'transition-colors hover:bg-[var(--settings-btn-primary-hover-bg)] disabled:cursor-not-allowed disabled:opacity-60',
@@ -375,7 +377,7 @@ export function SessionImportSection() {
<Check size={15} />
{importing ? t('settings.sessionImport.importing') : t('settings.sessionImport.importSelected')}
</button>
- </div>
+ </footer>
</div>
)}
</div>
@@ -449,12 +451,14 @@ function ScanSummary({ scan }: { scan: ScanResult }) {
function SummaryCell({ label, value, hint }: { label: string; value: number; hint: string }) {
return (
- <div className="rounded-lg border border-[var(--settings-input-border)] px-3 py-2">
- <p className="text-11 text-[var(--settings-section-desc)]">{label}</p>
- <p className="mt-1 text-18 font-medium text-[var(--settings-section-title)]">{value}</p>
- <p className="mt-1 min-h-[28px] text-11 leading-[1.25] text-[var(--settings-section-desc)]">
- {hint}
- </p>
+ <div className="min-w-0 rounded-xl border border-[var(--settings-input-border)] px-3 py-2">
+ <div className="flex min-w-0 items-baseline gap-2">
+ <p className="shrink-0 text-18 font-medium tabular-nums text-[var(--settings-section-title)]">
+ {value}
+ </p>
+ <p className="truncate text-11 text-[var(--settings-section-desc)]">{label}</p>
+ </div>
+ <p className="mt-1 text-11 leading-[1.4] text-[var(--settings-section-desc)]">{hint}</p>
</div>
);
}
@@ -474,7 +478,7 @@ function FilterBar({
const sourceFilters: SourceFilter[] = ['all', 'codex', 'claude'];
const placementFilters: PlacementFilter[] = ['all', 'project', 'dialogue'];
return (
- <div className="flex flex-col gap-2">
+ <div className="grid gap-2 xl:grid-cols-2">
<SegmentedFilter
label={t('settings.sessionImport.filters.source')}
values={sourceFilters}
@@ -507,8 +511,8 @@ function SegmentedFilter<T extends string>({
onChange: (value: T) => void;
}) {
return (
- <div className="flex flex-wrap items-center gap-2">
- <span className="w-[72px] text-11 font-medium text-[var(--settings-section-desc)]">
+ <div className="flex min-w-0 flex-wrap items-center gap-2 select-none">
+ <span className="w-[56px] text-11 font-medium text-[var(--settings-section-desc)]">
{label}
</span>
{values.map((filter) => (
@@ -517,7 +521,7 @@ function SegmentedFilter<T extends string>({
type="button"
onClick={() => onChange(filter)}
className={cn(
- 'h-8 rounded-md border px-3 text-12 font-medium transition-colors',
+ 'h-8 rounded-full border px-3 text-12 font-medium transition-colors active:scale-[0.98]',
value === filter
? 'border-[var(--settings-menu-border-selected)] bg-[var(--settings-menu-bg-selected)] text-[var(--settings-menu-text-selected)]'
: 'border-[var(--settings-input-border)] text-[var(--settings-section-sublabel)] hover:bg-[var(--settings-menu-bg-hover)]',
@@ -545,7 +549,7 @@ function SessionImportRow({
return (
<label
className={cn(
- 'flex cursor-pointer items-start gap-3 py-3 hover:bg-[var(--settings-menu-bg-hover)]',
+ 'flex min-w-0 cursor-pointer items-start gap-3 py-3 hover:bg-[var(--settings-menu-bg-hover)]',
isProjectChild ? 'pl-[40px] pr-4' : 'px-4',
)}
>
@@ -553,26 +557,26 @@ function SessionImportRow({
type="checkbox"
checked={checked}
onChange={onToggle}
- className="mt-1 h-4 w-4 accent-[var(--settings-menu-text-selected)]"
+ className="mt-1 h-4 w-4 shrink-0 accent-[var(--settings-menu-text-selected)]"
/>
<div className="min-w-0 flex-1">
- <div className="flex min-w-0 items-center gap-2">
- <span className="rounded border border-[var(--settings-input-border)] px-1.5 py-0.5 text-10 uppercase text-[var(--settings-section-desc)]">
+ <div className="flex min-w-0 items-center gap-2 overflow-hidden">
+ <span className="shrink-0 whitespace-nowrap rounded-full border border-[var(--settings-input-border)] px-1.5 py-0.5 text-10 uppercase text-[var(--settings-section-desc)]">
{item.source === 'codex' ? 'Codex' : 'Claude'}
</span>
{item.archived && (
- <span className="rounded border border-[var(--settings-input-border)] px-1.5 py-0.5 text-10 text-[var(--settings-section-desc)]">
+ <span className="shrink-0 whitespace-nowrap rounded-full border border-[var(--settings-input-border)] px-1.5 py-0.5 text-10 text-[var(--settings-section-desc)]">
{t('settings.sessionImport.archived')}
</span>
)}
{item.workspaceKind === 'dialogue' && (
- <span className="rounded border border-[var(--settings-input-border)] px-1.5 py-0.5 text-10 text-[var(--settings-section-desc)]">
+ <span className="shrink-0 whitespace-nowrap rounded-full border border-[var(--settings-input-border)] px-1.5 py-0.5 text-10 text-[var(--settings-section-desc)]">
{t('settings.sessionImport.filters.dialogue')}
</span>
)}
<p
title={item.title || undefined}
- className="truncate text-13 font-medium text-[var(--settings-section-sublabel)]"
+ className="min-w-0 flex-1 truncate text-13 font-medium text-[var(--settings-section-sublabel)]"
>
{item.title || t('settings.sessionImport.untitled')}
</p>
diff --git a/apps/desktop/src/renderer/components/settings/SettingsView.tsx b/apps/desktop/src/renderer/components/settings/SettingsView.tsx
index c1e6cc4e8c..5bbcbeef05 100644
--- a/apps/desktop/src/renderer/components/settings/SettingsView.tsx
+++ b/apps/desktop/src/renderer/components/settings/SettingsView.tsx
@@ -237,18 +237,29 @@ export function SettingsView() {
</aside>
{/* Content column — capped and centered in the remaining space.
+ Most tabs scroll as a page; Session Import uses a fixed-height workspace
+ so only its candidate list scrolls and the import action stays visible.
right padding mirrors sidebar's 24px left inset.
pt-[56px] pushes content top to align with the first nav tab (General),
skipping the "Settings" header height (h1 24/1.1 + pb-18 + gap-2 ≈ 52px).
- scrollbar-gutter:stable —— 全局滚动条占位 12px,长短页(有/无滚动条)
- 切换时预留 gutter,避免居中内容左右跳变。 */}
+ scrollbar-gutter:stable —— 所有分区都预留同一滚动条槽位;即使
+ Session Import 自身不滚动,也要保持与普通滚动页相同的内容宽度。 */}
<div
ref={contentScrollRef}
- className="flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-y-auto pl-4 pr-6 pt-[56px] [scrollbar-gutter:stable]"
+ className={cn(
+ 'flex h-full min-h-0 min-w-0 flex-1 flex-col pl-4 pr-6 pt-[56px] [scrollbar-gutter:stable]',
+ activeTab === 'import' ? 'overflow-hidden' : 'overflow-y-auto',
+ )}
>
{/* key={activeTab}:切分区时 wrapper 重挂跑 150ms 淡入(面板内容本就
按 activeTab 条件卸载重挂,key 不额外丢状态;滚动容器在外层不重挂)。 */}
- <div key={activeTab} className="mx-auto w-full max-w-[920px] pb-32 animate-fade-in">
+ <div
+ key={activeTab}
+ className={cn(
+ 'mx-auto w-full min-w-0 max-w-[920px] px-1 animate-fade-in',
+ activeTab === 'import' ? 'h-full min-h-0' : 'pb-32',
+ )}
+ >
{activeTab === 'general' && (
<div
role="tabpanel"
@@ -467,8 +478,13 @@ export function SettingsView() {
)}
{activeTab === 'import' && (
- <div role="tabpanel" id="settings-panel-import" aria-labelledby="settings-tab-import">
- <section aria-label={t('settings.sections.import')}>
+ <div
+ role="tabpanel"
+ id="settings-panel-import"
+ aria-labelledby="settings-tab-import"
+ className="h-full min-h-0"
+ >
+ <section className="h-full min-h-0" aria-label={t('settings.sections.import')}>
<SessionImportSection />
</section>
</div>
diff --git a/apps/desktop/src/renderer/components/settings/VoiceInputSection.tsx b/apps/desktop/src/renderer/components/settings/VoiceInputSection.tsx
index 05be53720b..03d0df329f 100644
--- a/apps/desktop/src/renderer/components/settings/VoiceInputSection.tsx
+++ b/apps/desktop/src/renderer/components/settings/VoiceInputSection.tsx
@@ -1724,13 +1724,14 @@ export function VoiceInputSection() {
return (
<div className="flex flex-col gap-3">
- <h2 className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">
- {t('settings.voiceInput.title')}
- </h2>
-
- <p className="text-13 leading-[1.5] text-[var(--settings-section-desc)]">
- {t('settings.voiceInput.description')}
- </p>
+ <div className="flex flex-col gap-1">
+ <h2 className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">
+ {t('settings.voiceInput.title')}
+ </h2>
+ <p className="text-13 leading-[1.5] text-[var(--settings-section-desc)]">
+ {t('settings.voiceInput.description')}
+ </p>
+ </div>
<VoiceInputServiceSourceCard />
diff --git a/apps/desktop/src/renderer/features/billing/BillingPage.tsx b/apps/desktop/src/renderer/features/billing/BillingPage.tsx
index 21ff86eb89..606d8ef466 100644
--- a/apps/desktop/src/renderer/features/billing/BillingPage.tsx
+++ b/apps/desktop/src/renderer/features/billing/BillingPage.tsx
@@ -727,7 +727,7 @@ export function BillingSettingsSection({ accountId }: { accountId: string | null
<>
<div>
<div className="flex items-start justify-between gap-6">
- <h2 className="text-20 font-medium tracking-[-0.01em] text-[var(--settings-section-title)]">
+ <h2 className="text-16 font-medium leading-[1.2] text-[var(--settings-section-title)]">
{t('billing.settings.title')}
</h2>
<button