Commit 7642906
authored
feat: open the Style panel only when explicitly requested (#1775)
* feat: open the Style panel only when explicitly requested
Selecting a layer no longer pops the Style panel open over the map, which
made the workspace jump around during ordinary layer picking. The panel now
expands only from the new "Open Style panel" item in a layer's menu.
* Address review feedback
- Gate the Style panel's open-request effect on `autoCollapse`, so a request
made while the notebook or a story-map presentation owns the workspace can
no longer force the panel open over them. The `autoCollapse` effect acts
only on transitions, so such an expand would have stuck until the notebook
was closed and reopened.
- Hide the "Open Style panel" menu item when the Style panel is hidden
(Settings → "Show Style panel"). The panel is not mounted then, so the
request was dropped rather than queued and the item did nothing.1 parent 1578884 commit 7642906
5 files changed
Lines changed: 48 additions & 19 deletions
File tree
- apps/geolibre-desktop/src
- components
- layout
- panels
- i18n/locales
- docs/tutorials
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
869 | 873 | | |
870 | 874 | | |
871 | 875 | | |
| |||
2245 | 2249 | | |
2246 | 2250 | | |
2247 | 2251 | | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
2248 | 2255 | | |
2249 | 2256 | | |
2250 | 2257 | | |
| |||
2268 | 2275 | | |
2269 | 2276 | | |
2270 | 2277 | | |
| 2278 | + | |
2271 | 2279 | | |
2272 | 2280 | | |
2273 | 2281 | | |
| |||
2493 | 2501 | | |
2494 | 2502 | | |
2495 | 2503 | | |
| 2504 | + | |
2496 | 2505 | | |
2497 | 2506 | | |
2498 | 2507 | | |
| |||
2513 | 2522 | | |
2514 | 2523 | | |
2515 | 2524 | | |
| 2525 | + | |
2516 | 2526 | | |
2517 | 2527 | | |
2518 | 2528 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
246 | 253 | | |
247 | 254 | | |
248 | 255 | | |
| |||
608 | 615 | | |
609 | 616 | | |
610 | 617 | | |
| 618 | + | |
611 | 619 | | |
612 | 620 | | |
613 | 621 | | |
| |||
3364 | 3372 | | |
3365 | 3373 | | |
3366 | 3374 | | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
| 3385 | + | |
3367 | 3386 | | |
3368 | 3387 | | |
3369 | 3388 | | |
| |||
Lines changed: 17 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| |||
984 | 986 | | |
985 | 987 | | |
986 | 988 | | |
| 989 | + | |
987 | 990 | | |
988 | 991 | | |
989 | 992 | | |
| |||
998 | 1001 | | |
999 | 1002 | | |
1000 | 1003 | | |
1001 | | - | |
1002 | | - | |
| 1004 | + | |
| 1005 | + | |
1003 | 1006 | | |
1004 | 1007 | | |
1005 | 1008 | | |
| |||
1013 | 1016 | | |
1014 | 1017 | | |
1015 | 1018 | | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1021 | 1027 | | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
1033 | 1032 | | |
1034 | 1033 | | |
1035 | 1034 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4892 | 4892 | | |
4893 | 4893 | | |
4894 | 4894 | | |
| 4895 | + | |
4895 | 4896 | | |
4896 | 4897 | | |
4897 | 4898 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments