otakustay/react-diff-view

Expand hidden lines bug in demo website

Closed this issue · 5 comments

Steps to reproduce:

x
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
x
  • Paste in CHANGED TEXT:
y
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
y

Because we have a useMinCollapsedLines call in demo, when the remaining collapsed lines are less than 5, it expands automatically.

This is a visual bug of demo site, we should display a single "expand all lines" decoration when collapsed lines are less than 15, will fix it soon

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Thanks. I thought that you'd fix the button to day "expand 11 lines", because not leaving less than 5 lines is actually nice, but your fix is valid too.