Commit 2006a97
Add sticky header to PR/Issue views (#8285)
* Initial plan
* Initial plan for sticky PR/Issue headers
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Add sticky header functionality with compact mode
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Add high contrast mode and mobile responsiveness support
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Add test for sticky header functionality
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Address code review: add constant and use requestAnimationFrame
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix flickering at threshold with hysteresis
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix useEffect dependency issue with ref
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix flickering with IntersectionObserver and pure CSS approach
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix subtitle visibility and remove side borders/shadows
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix subtitle visibility by adding flex: 1 to .details
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix IntersectionObserver to prevent stuck state on page load
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix sentinel observer to use threshold 0 without negative rootMargin
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Explicitly remove stuck class on mount and use threshold 1
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Replace IntersectionObserver with scroll-based position detection
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Add requestAnimationFrame throttling and extract threshold constant
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* reduce diff
* Hide edit title button when in sticky mode
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Use ID instead of title attribute for edit button selector
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>1 parent 9b7cc20 commit 2006a97
5 files changed
Lines changed: 153 additions & 2 deletions
File tree
- webviews
- common
- components
- editorWebview
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | | - | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
56 | 91 | | |
57 | 92 | | |
58 | 93 | | |
| |||
567 | 602 | | |
568 | 603 | | |
569 | 604 | | |
| 605 | + | |
570 | 606 | | |
571 | 607 | | |
572 | 608 | | |
| |||
1216 | 1252 | | |
1217 | 1253 | | |
1218 | 1254 | | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
1219 | 1259 | | |
1220 | 1260 | | |
1221 | 1261 | | |
| |||
1242 | 1282 | | |
1243 | 1283 | | |
1244 | 1284 | | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1245 | 1289 | | |
1246 | 1290 | | |
1247 | 1291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
34 | 78 | | |
35 | 79 | | |
36 | | - | |
| 80 | + | |
37 | 81 | | |
38 | 82 | | |
39 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
0 commit comments