mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix(share): don't highlight words unless split
This commit is contained in:
parent
020ee56f25
commit
d74663bf53
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue