Skip to content

PB-1208 : Have layer legend behind the menu on mobile#1243

Merged
sami-nouidri-swisstopo merged 8 commits intodevelopfrom
bug-PB-1208-layer-legend-popup
Feb 19, 2025
Merged

PB-1208 : Have layer legend behind the menu on mobile#1243
sami-nouidri-swisstopo merged 8 commits intodevelopfrom
bug-PB-1208-layer-legend-popup

Conversation

@sami-nouidri-swisstopo
Copy link
Contributor

@sami-nouidri-swisstopo sami-nouidri-swisstopo commented Feb 14, 2025

The layer legend info window has been smaller on mobile displays, and when displayed, closes the menu so as to not obscure the map behind.

Here's a preview of the change :
image

Test link

@cypress
Copy link

cypress bot commented Feb 14, 2025

web-mapviewer    Run #4597

Run Properties:  status check passed Passed #4597  •  git commit d381565a3e: Merge pull request #1243 from geoadmin/bug-PB-1208-layer-legend-popup
Project web-mapviewer
Branch Review develop
Run status status check passed Passed #4597
Run duration 01m 38s
Commit git commit d381565a3e: Merge pull request #1243 from geoadmin/bug-PB-1208-layer-legend-popup
Committer Sami Nouidri
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 1
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 48
View all changes introduced in this branch ↗︎

@sami-nouidri-swisstopo sami-nouidri-swisstopo force-pushed the bug-PB-1208-layer-legend-popup branch from 36d7b15 to 0f6176e Compare February 14, 2025 13:34
pakb
pakb previously approved these changes Feb 17, 2025
Comment on lines +199 to +204
left: 10px;
right: 10px;
transform: unset;
max-height: calc(100vh - $top-margin);
max-width: 100vw;
width: 100vw;
max-width: 75vw;
width: 75vw;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed, please make that active only when a specific prop/flag is present

@pakb pakb dismissed their stale review February 17, 2025 06:20

SimpleWindow changes might lead to some unplanned side-effects, switching to an opt-in approach would be a better way

@sami-nouidri-swisstopo sami-nouidri-swisstopo force-pushed the bug-PB-1208-layer-legend-popup branch from 025c74a to 9e34bec Compare February 17, 2025 12:54
<SimpleWindow
:title="title"
:small="true"
:class="{ small }"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the small class should be added by the SimpleWindow component itself, when the flag is set to true.
You can set a flag (when given as props) just by adding its name to the use of the component.

<SimpleWindow
    :title="title"
    small
    ...
    />

@sami-nouidri-swisstopo sami-nouidri-swisstopo merged commit d381565 into develop Feb 19, 2025
6 checks passed
@sami-nouidri-swisstopo sami-nouidri-swisstopo deleted the bug-PB-1208-layer-legend-popup branch February 19, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants