summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/diff.tsx
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-10-29 14:08:52 -0500
committerAdam <[email protected]>2025-10-29 16:04:34 -0500
commitcdeb82e9ca0213960202447896493c8d18cb867b (patch)
tree931a7ea706760691ae06b2b90c06729a0b943dac /packages/ui/src/components/diff.tsx
parenta9cae7b33563cb23c3aab88884d6e9b215fc0ba7 (diff)
downloadopencode-cdeb82e9ca0213960202447896493c8d18cb867b.tar.gz
opencode-cdeb82e9ca0213960202447896493c8d18cb867b.zip
wip: desktop work
Diffstat (limited to 'packages/ui/src/components/diff.tsx')
-rw-r--r--packages/ui/src/components/diff.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/ui/src/components/diff.tsx b/packages/ui/src/components/diff.tsx
index 3eeab6d6f..731b1bfe0 100644
--- a/packages/ui/src/components/diff.tsx
+++ b/packages/ui/src/components/diff.tsx
@@ -54,18 +54,20 @@ export function Diff<T>(props: DiffProps<T>) {
// When ready to render, simply call .render with old/new file, optional
// annotations and a container element to hold the diff
createEffect(() => {
+ // @ts-expect-error
const instance = new FileDiff<T>({
- theme: "pierre-light",
+ // theme: "pierre-light",
+ // theme: "pierre-light",
// Or can also provide a 'themes' prop, which allows the code to adapt
// to your OS light or dark theme
- // themes: { dark: 'pierre-night', light: 'pierre-light' },
+ themes: { dark: "pierre-dark", light: "pierre-light" },
// When using the 'themes' prop, 'themeType' allows you to force 'dark'
// or 'light' theme, or inherit from the OS ('system') theme.
themeType: "system",
// Disable the line numbers for your diffs, generally not recommended
disableLineNumbers: false,
// Whether code should 'wrap' with long lines or 'scroll'.
- overflow: "scroll",
+ overflow: "wrap",
// Normally you shouldn't need this prop, but if you don't provide a
// valid filename or your file doesn't have an extension you may want to
// override the automatic detection. You can specify that language here: