fix(share): don't highlight words unless split

This commit is contained in:
Adam 2025-11-25 12:21:33 -06:00
parent 020ee56f25
commit d74663bf53
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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,