Repository navigation
Commit cd1029f
fix(mobile): Home and pull request lists let UIKit own their top inset
Home, the pull request list, pull request detail and reviewers set their
top inset by hand from useSafeAreaInsets and pinned a resting offset in
JS. On the iPhone Duo, iOS 27 minimizes the navigation bar on scroll down
by default, which shrinks the safe area every frame; each change round-
tripped through JS, moved the content a frame late, and UIKit read that
as a reversed scroll that restored the bar. Home's sidebar stuttered in
place.
These lists now use contentInsetAdjustmentBehavior "automatic", like the
thread feed, so UIKit moves the inset and offset in the same frame as the
bar, through folds and column resizes too. That removes the manual
contentInset props and useRestingTopOffset; bottom padding subtracts the
safe area UIKit now adds.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 22dc1da commit cd1029f
6 files changed
Lines changed: 16 additions & 149 deletions
File tree
- apps/mobile/src
- features
- home
- pull-requests
- native
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
218 | 217 | | |
219 | 218 | | |
220 | 219 | | |
221 | | - | |
222 | 220 | | |
223 | | - | |
224 | 221 | | |
225 | 222 | | |
226 | 223 | | |
| |||
235 | 232 | | |
236 | 233 | | |
237 | 234 | | |
238 | | - | |
239 | 235 | | |
240 | 236 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | 237 | | |
247 | 238 | | |
248 | 239 | | |
| |||
885 | 876 | | |
886 | 877 | | |
887 | 878 | | |
888 | | - | |
889 | | - | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
890 | 882 | | |
891 | 883 | | |
892 | 884 | | |
| |||
905 | 897 | | |
906 | 898 | | |
907 | 899 | | |
908 | | - | |
| 900 | + | |
909 | 901 | | |
910 | 902 | | |
911 | 903 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
39 | | - | |
40 | 37 | | |
41 | 38 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 39 | + | |
49 | 40 | | |
50 | 41 | | |
51 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | | - | |
121 | | - | |
122 | 119 | | |
123 | 120 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 121 | + | |
130 | 122 | | |
131 | 123 | | |
132 | 124 | | |
| |||
572 | 564 | | |
573 | 565 | | |
574 | 566 | | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
579 | 570 | | |
580 | 571 | | |
581 | 572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | | - | |
51 | 48 | | |
52 | 49 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 50 | + | |
59 | 51 | | |
60 | 52 | | |
61 | 53 | | |
| |||
266 | 258 | | |
267 | 259 | | |
268 | 260 | | |
269 | | - | |
270 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
271 | 264 | | |
272 | 265 | | |
273 | 266 | | |
274 | 267 | | |
275 | 268 | | |
276 | 269 | | |
277 | 270 | | |
278 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
279 | 274 | | |
280 | 275 | | |
281 | 276 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments