Skip to content

Commit

Permalink
Merge pull request #978 from geoadmin/bug-PB-723-full-screen
Browse files Browse the repository at this point in the history
PB-723: Keep toolbox buttons in full screen mode - #patch
  • Loading branch information
ltshb authored Jul 4, 2024
2 parents 50288e3 + ca661e6 commit 336094d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/modules/map/components/cesium/CesiumMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<CesiumGeolocationFeedback v-if="viewerCreated" />

<cesium-compass
v-show="isDesktopMode && !isFullScreenMode"
v-show="isDesktopMode"
ref="compass"
class="position-absolute start-50 translate-middle-x cesium-compass"
/>
Expand Down
8 changes: 4 additions & 4 deletions src/modules/map/components/toolbox/MapToolbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ const is3dActive = computed(() => store.state.cesium.active)
data-cy="toolbox-right"
>
<FullScreenButton v-if="fullScreenButton" />
<GeolocButton v-if="geolocButton && !isFullscreenMode" />
<ZoomButtons v-if="!isFullscreenMode" />
<Toggle3dButton v-if="toggle3dButton && !isFullscreenMode" />
<OpenLayersCompassButton v-if="compassButton && !is3dActive && !isFullscreenMode" />
<GeolocButton v-if="geolocButton" />
<ZoomButtons />
<Toggle3dButton v-if="toggle3dButton" />
<OpenLayersCompassButton v-if="compassButton && !is3dActive" />
<slot />
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/tests-e2e/toolboxRight.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Testing the buttons of the right toolbox', () => {

// only the map and the fullscreen button should be visible
cy.get('[data-cy="toolbox-right"]').within(($toolboxRight) => {
expect($toolboxRight.children().length).to.eq(1)
expect($toolboxRight.children().length).to.eq(4)
})
cy.get('[data-cy="app-header"]').should('not.be.visible')
cy.get('[data-cy="menu-tray"]').should('be.hidden')
Expand Down

0 comments on commit 336094d

Please sign in to comment.