diff options
| author | Adam <[email protected]> | 2025-10-28 15:39:34 -0500 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-10-28 15:39:41 -0500 |
| commit | 46ad4567188906b0d8e2cf2a67d6add6ec333a61 (patch) | |
| tree | 1e1af19a4e000292d13269d5b991853b74458dbb /packages/ui | |
| parent | 832ffd23032c11bc289b36b95399a2b25b9fa779 (diff) | |
| download | opencode-46ad4567188906b0d8e2cf2a67d6add6ec333a61.tar.gz opencode-46ad4567188906b0d8e2cf2a67d6add6ec333a61.zip | |
wip: desktop work
Diffstat (limited to 'packages/ui')
| -rw-r--r-- | packages/ui/src/components/diff.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/ui/src/components/diff.tsx b/packages/ui/src/components/diff.tsx index 88215bcb0..3eeab6d6f 100644 --- a/packages/ui/src/components/diff.tsx +++ b/packages/ui/src/components/diff.tsx @@ -24,7 +24,13 @@ export type DiffProps<T = {}> = Omit<DiffFileRendererOptions<T>, "themes"> & { export function Diff<T>(props: DiffProps<T>) { let container!: HTMLDivElement - const [local, others] = splitProps(props, ["before", "after", "class", "classList", "annotations"]) + const [local, others] = splitProps(props, [ + "before", + "after", + "class", + "classList", + "annotations", + ]) // const lineAnnotations: DiffLineAnnotation<ThreadMetadata>[] = [ // { @@ -165,6 +171,7 @@ export function Diff<T>(props: DiffProps<T>) { "--pjs-tab-size": 4, "--pjs-font-features": "var(--font-family-mono--font-feature-settings)", "--pjs-header-font-family": "var(--font-family-sans)", + "--pjs-gap-block": 0, }} ref={container} /> |
