The open source coding agent.
TypeScript
fix(share): don't highlight words unless split
Adamd74663bf532c
diff --git a/packages/enterprise/src/routes/share/[shareID].tsx b/packages/enterprise/src/routes/share/[shareID].tsxindex 033d87fed04..0f282d04c5f 100644--- a/packages/enterprise/src/routes/share/[shareID].tsx+++ b/packages/enterprise/src/routes/share/[shareID].tsx@@ -91,7 +91,7 @@ const getData = query(async (shareID) => {diffIndicators: "bars",disableBackground: false,expansionLineCount: 20,- lineDiffType: "word-alt",+ lineDiffType: "none",maxLineDiffLength: 1000,maxLineLengthForHighlighting: 1000,disableFileHeader: true,diff --git a/packages/ui/src/components/diff.tsx b/packages/ui/src/components/diff.tsxindex e9747f25d35..344ce3c8eaf 100644--- a/packages/ui/src/components/diff.tsx+++ b/packages/ui/src/components/diff.tsx@@ -33,7 +33,7 @@ export function Diff<T>(props: DiffProps<T>) {diffIndicators: "bars",disableBackground: false,expansionLineCount: 20,- lineDiffType: "word-alt",+ lineDiffType: props.diffStyle === "split" ? "word-alt" : "none",maxLineDiffLength: 1000,maxLineLengthForHighlighting: 1000,disableFileHeader: true,