Skip to content

Commit

Permalink
Merge pull request #360 from IGNF/fix/responsive-widgets
Browse files Browse the repository at this point in the history
evol(widgets): Amélioration du caractère responsive des widgets
  • Loading branch information
elias75015 authored Oct 25, 2024
2 parents 90ab68f + 9b4b2bc commit bc169fb
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
2 changes: 2 additions & 0 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,7 @@ Version 1.0.1 de l'entrée cartographique de la Géoplateforme.

* Placement correct de la barre latéral de widget actif sous Firefox et Chrome [extensions:#219](https://github.com/IGNF/geopf-extensions-openlayers/pull/219)

* Ouverture responsive des panels des widgets sur petits écrans [#360](https://github.com/IGNF/cartes.gouv.fr-entree-carto/pull/360)

#### 🔒 [Sécurité]
---
Binary file added geopf-extensions-openlayers-1.0.0-beta.0-230.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@gouvminint/vue-dsfr": "^5.14.2",
"@vueuse/components": "^10.9.0",
"@vueuse/core": "^10.9.0",
"geopf-extensions-openlayers": "./geopf-extensions-openlayers-1.0.0-beta.0-232.tgz",
"geopf-extensions-openlayers": "./geopf-extensions-openlayers-1.0.0-beta.0-230.tgz",
"ol": "8.2.0",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
Expand Down
13 changes: 12 additions & 1 deletion src/components/CartoAndTools.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,15 @@ const selectedControls = computed(() => {
height: calc(100vh - 92.5px - 56px);
}
}
</style>
</style>

<style>
/* FIXME Style non scopé pour cacher les boutons partage et de menu
à voir si c'est factorisable avec ce qui est fait l153 de MenuLateralWrapper.vue */
@media (max-width: 576px) {
#map-and-tools-container:has(.gpf-mobile-fullscreen > button[aria-pressed="true"]) .navButton,
#map-and-tools-container:has(.gpf-mobile-fullscreen > button[aria-pressed="true"]) #share-button-position {
display: none;
}
}
</style>
23 changes: 21 additions & 2 deletions src/components/carte/Controls.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="js">
/**
* @description
*
*
* @property { Array } controlOptions tableau contenant les controls disponibles
*
*
*/
export default {
name: 'Controls'
Expand Down Expand Up @@ -460,7 +460,26 @@ const mousePositionOptions = {
.position-container-top-right {
height: calc(100% - 214px);
}
/* Mode mobile : on positionne les dialog par dessus la barre de recherche
en position fix, sous le header DSFR, et on annule le positionnement introduit
par la classe gpf-mobile-fullscree (right ou left) à l'aide de marges */
.gpf-mobile-fullscreen > button[aria-pressed="true"] ~ dialog {
position: fixed;
margin-top: 96.5px;
}
.position-container-bottom-right .gpf-mobile-fullscreen > button[aria-pressed="true"] ~ dialog,
.position-container-top-right .gpf-mobile-fullscreen > button[aria-pressed="true"] ~ dialog {
margin-right: 4px;
}
.position-container-bottom-left .gpf-mobile-fullscreen > button[aria-pressed="true"] ~ dialog,
.position-container-top-left .gpf-mobile-fullscreen > button[aria-pressed="true"] ~ dialog {
margin-left: 8px;
}
}
@media (max-width: 627px) and (min-width: 576px){
.position-container-top-right,
.position-container-top-left {
Expand Down

0 comments on commit bc169fb

Please sign in to comment.