summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/diff.tsx
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-10-28 15:39:34 -0500
committerAdam <[email protected]>2025-10-28 15:39:41 -0500
commit46ad4567188906b0d8e2cf2a67d6add6ec333a61 (patch)
tree1e1af19a4e000292d13269d5b991853b74458dbb /packages/ui/src/components/diff.tsx
parent832ffd23032c11bc289b36b95399a2b25b9fa779 (diff)
downloadopencode-46ad4567188906b0d8e2cf2a67d6add6ec333a61.tar.gz
opencode-46ad4567188906b0d8e2cf2a67d6add6ec333a61.zip
wip: desktop work
Diffstat (limited to 'packages/ui/src/components/diff.tsx')
-rw-r--r--packages/ui/src/components/diff.tsx9
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}
/>