Commit 1e7fd71
authored
Make demo a bit more mobile friendly (#44)
1. Change `ui.horizontal()` to `ui.horizontal_wrapped()` for the
`PlotDemo` selector so it doesn't go off screen.
2. Wrap several of the demo's "settings" UI's in a
`ScrollArea::horizontal`s so they don't go off screen and make the plots
go off screen as well.
3. Wrap the plots in the LinkedAxes demo in a `ScrollArea::horizontal`
so they don't go off screen.
# Before and after screenshots
## Lines
Before:
<img width="392" alt="Screenshot 2024-09-09 at 7 15 24 PM"
src="https://github.com/user-attachments/assets/23063cfe-04bd-4e76-9158-7b6cbaf4f2bf">
After:
<img width="398" alt="Screenshot 2024-09-09 at 7 17 13 PM"
src="https://github.com/user-attachments/assets/7285dcea-4434-4b5b-b9bc-7cae330de703">
## Legend
Before:
<img width="319" alt="Screenshot 2024-09-09 at 7 43 05 PM"
src="https://github.com/user-attachments/assets/84a6b78a-dc9e-42df-be3b-cf26d54af848">
After:
<img width="315" alt="Screenshot 2024-09-09 at 7 22 37 PM"
src="https://github.com/user-attachments/assets/d2225e97-d321-4af0-8f60-4d2591aea17b">
## Charts
Before:
<img width="320" alt="Screenshot 2024-09-09 at 7 43 12 PM"
src="https://github.com/user-attachments/assets/90b1c287-6b44-42c3-b8f1-417d5c367a4a">
After:
<img width="318" alt="Screenshot 2024-09-09 at 7 25 15 PM"
src="https://github.com/user-attachments/assets/31793d79-dbb5-42c8-bfe7-435d5b4f7686">
## Linked Axes
Before:
<img width="321" alt="Screenshot 2024-09-09 at 7 43 29 PM"
src="https://github.com/user-attachments/assets/4622c4f0-c9af-4c85-a5e3-a106ae5ea2f5">
After:
<img width="323" alt="Screenshot 2024-09-09 at 7 29 50 PM"
src="https://github.com/user-attachments/assets/d008fdcc-2a3c-4f6b-8624-6afa0e38da63">1 parent d00fa85 commit 1e7fd71
1 file changed
Lines changed: 46 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | | - | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
257 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
258 | 262 | | |
259 | 263 | | |
260 | 264 | | |
| |||
392 | 396 | | |
393 | 397 | | |
394 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
395 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
396 | 417 | | |
| 418 | + | |
| 419 | + | |
397 | 420 | | |
398 | 421 | | |
399 | 422 | | |
| |||
420 | 443 | | |
421 | 444 | | |
422 | 445 | | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | 446 | | |
436 | 447 | | |
437 | 448 | | |
| |||
642 | 653 | | |
643 | 654 | | |
644 | 655 | | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
645 | 663 | | |
646 | 664 | | |
647 | 665 | | |
| |||
877 | 895 | | |
878 | 896 | | |
879 | 897 | | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
880 | 909 | | |
881 | 910 | | |
882 | 911 | | |
| |||
912 | 941 | | |
913 | 942 | | |
914 | 943 | | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
| 944 | + | |
| 945 | + | |
921 | 946 | | |
922 | 947 | | |
923 | 948 | | |
| |||
0 commit comments