Commit 6e79e23
authored
fix: improve sidebar resize handle for fine and coarse pointers (#1299)
* fix: improve sidebar resize handle width and activation behavior
- Set resize handle width to 8px for fine pointers (mouse) and 26px for
touch users via @media (any-pointer: coarse)
- Prevent resize activation when clicking the sidebar scrollbar by
requiring the mouse to cross the sidebar's outer edge before the
handle becomes active (adds .handle-active class)
- Use a 5px trip area at the sidebar edge that expands to 24px (12px
per side) once activated, with engagement-point dismissal to create
perceived directional bias
- Handle stays pointer-events: none for fine pointers so the native
scrollbar remains fully clickable beneath it
- Touch users bypass activation logic and get full handle interactivity
Fixes #1294
* Resave distributed files (GitHub Action)
* Resave data (GitHub Action)
* feat: add `resizable` argument to `sidebar()`
Add a `resizable` parameter (default TRUE) that controls whether the
sidebar resize handle is enabled. When TRUE, a `data-resizable`
attribute is added to the sidebar `<aside>` element; the JS and CSS
only enable resize functionality when this attribute is present.
Fixes #1294
* Resave distributed files (GitHub Action)1 parent e26a8cc commit 6e79e23
File tree
12 files changed
+290
-22
lines changed- R
- inst/components
- dist
- scss
- man
- srcts/src/components
- tests/testthat
12 files changed
+290
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
105 | | - | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
| |||
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
| 157 | + | |
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
| |||
220 | 225 | | |
221 | 226 | | |
222 | 227 | | |
| 228 | + | |
223 | 229 | | |
224 | 230 | | |
225 | 231 | | |
| |||
Binary file not shown.
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.
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.
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 | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
309 | 313 | | |
310 | 314 | | |
311 | 315 | | |
312 | | - | |
| 316 | + | |
313 | 317 | | |
314 | 318 | | |
315 | 319 | | |
316 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
317 | 324 | | |
318 | 325 | | |
319 | 326 | | |
320 | 327 | | |
321 | 328 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
326 | 355 | | |
327 | 356 | | |
328 | 357 | | |
| |||
338 | 367 | | |
339 | 368 | | |
340 | 369 | | |
341 | | - | |
| 370 | + | |
342 | 371 | | |
343 | 372 | | |
344 | 373 | | |
345 | 374 | | |
346 | 375 | | |
347 | 376 | | |
348 | | - | |
| 377 | + | |
| 378 | + | |
349 | 379 | | |
350 | 380 | | |
351 | 381 | | |
| |||
370 | 400 | | |
371 | 401 | | |
372 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
373 | 417 | | |
374 | 418 | | |
375 | 419 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments