Commit 802aa6d
Add comment highlight when target from url (#9047)
* Add comment highlight css
* Add js to remove highlight on click outside
* Improve refresh page on click outside
* Use location.hash property to remove target
* Handle click ONLY clicked outside of 'targetted comment' (not other comment)
* Remove unnecessary checks and simply code
* Combine hash and setState to remove target path1 parent 62bcb2b commit 802aa6d
File tree
5 files changed
+32
-2
lines changed- public
- css
- js
- web_src
- js
- less
5 files changed
+32
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
| 596 | + | |
596 | 597 | | |
597 | 598 | | |
598 | 599 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
589 | 611 | | |
590 | 612 | | |
591 | 613 | | |
| |||
733 | 755 | | |
734 | 756 | | |
735 | 757 | | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
736 | 761 | | |
737 | 762 | | |
738 | 763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
847 | 851 | | |
848 | 852 | | |
849 | 853 | | |
| |||
0 commit comments