Skip to content

Commit

Permalink
Merge pull request #203 from IGNF/feature/responsive-search
Browse files Browse the repository at this point in the history
Gestion mobile barre de recherche
  • Loading branch information
elias75015 authored May 3, 2024
2 parents b39b9ea + b625c2e commit ff05261
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 7 deletions.
Binary file removed geoportal-extensions-openlayers-1.0.0-beta.13.tgz
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@gouvfr/dsfr": "^1.11.2",
"@gouvminint/vue-dsfr": "^5.14.2",
"geoportal-extensions-openlayers": "./geoportal-extensions-openlayers-1.0.0-beta.13.tgz",
"geoportal-extensions-openlayers": "./geoportal-extensions-openlayers-1.0.0-beta.15.tgz",
"ol": "8.2.0"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/components/carte/Control.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,4 @@ const attributionsOptions = {}
:overview-map-options="overviewMapOptions"
/>
</template>

19 changes: 17 additions & 2 deletions src/components/carte/control/SearchEngine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const props = defineProps({
const log = useLogger()
const store = useDataStore()
const { getLayerByName } = storeToRefs(store)
const map = inject('map')
Expand Down Expand Up @@ -52,7 +53,21 @@ const onClickSearch = (e) => {
<template></template>

<style>
/* Centrage de la barre de recherche avec marge horizontales auto et largeur fixe */
div[id^="GPsearchEngine-"]{
left: 40vw;
position: relative;
width: 500px;
margin: 0 auto;
left: unset;
}
/* MODE MOBILE : les boutons sont en dessous de la barre de recherche qui prend toute la largeur */
@media (max-width: 576px){
div[id^=GPsearchEngine-]{
flex-direction: column;
top: unset;
left: unset;
width:100%;
}
}
</style>
</style>

0 comments on commit ff05261

Please sign in to comment.