mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Add diff expansion controls with ContentDiffViewer and CodePreview components
This commit is contained in:
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">
|
||||
|
||||
Reference in new issue
Block a user