Skip to content

Commit

Permalink
feat!: diff/flexbox based layout, text selectable per side (fixes #15)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This completely modifies the way react-diff-viewer-continued is rendered. The overall
layout should be more or less the same, but with the new layout probably come new bugs.
  • Loading branch information
Aeolun committed Oct 18, 2023
1 parent 39b41e3 commit 9f6c4d5
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 141 deletions.
4 changes: 2 additions & 2 deletions examples/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class Example extends Component<{}, ExampleState> {
this.state.customGutter
? (diffData) => {
return (
<td
<div
className={
diffData.type !== undefined
? cn(diffData.styles.gutter)
Expand All @@ -214,7 +214,7 @@ class Example extends Component<{}, ExampleState> {
? '==='
: undefined}
</pre>
</td>
</div>
);
}
: undefined
Expand Down
Loading

0 comments on commit 9f6c4d5

Please sign in to comment.