fix(share): don't highlight words unless split
parent
020ee56f25
commit
d74663bf53
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue