Add diff expansion controls with ContentDiffViewer and CodePreview components

This commit is contained in:
Chris Scott committed 2025-12-26 18:07:33 -05:00
1 parent 55b6ab3c87
commit 4fd658fc7d
11 files changed
+549 -53

No files matched your search

@@ -136,6 +136,20 @@ export function GeneralSettings() {
/>
</div>
<div className="flex flex-row items-center justify-between rounded-lg border border-border p-4">
<div className="space-y-0.5">
<Label htmlFor="expandDiffs" className="text-base">Expand diffs</Label>
<p className="text-sm text-muted-foreground">
Show file diffs expanded by default for edit operations
</p>
</div>
<Switch
id="expandDiffs"
checked={preferences?.expandDiffs ?? true}
onCheckedChange={(checked) => updateSettings({ expandDiffs: checked })}
/>
</div>
<div className="space-y-2">
<Label htmlFor="gitToken">GitHub Personal Access Token</Label>
<div className="flex gap-2">