Skip to content

Commit

Permalink
fix(search): position des résultats quand le search est dans un coin (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz authored Dec 20, 2024
1 parent 79b80e9 commit a0df2c0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "geopf-extensions-openlayers",
"description": "French Geoportal Extensions for OpenLayers libraries",
"version": "1.0.0-beta.1-305",
"version": "1.0.0-beta.1-308",
"date": "18/12/2024",
"module": "src/index.js",
"directories": {},
Expand Down
15 changes: 15 additions & 0 deletions src/packages/CSS/Controls/SearchEngine/DSFRsearchEngineStyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,21 @@ div[id^=GPautoCompleteList] {
margin-left: 2px;
}

.position-container-top-left [id^="GPsearchEngine-"] > div[id^=GPautoCompleteList],
.position-container-bottom-left [id^="GPsearchEngine-"] > div[id^=GPautoCompleteList],
.position-container-top-right [id^="GPsearchEngine-"] > div[id^=GPautoCompleteList],
.position-container-bottom-right [id^="GPsearchEngine-"] > div[id^=GPautoCompleteList] {
width: 340px;
position: relative;
top: unset;
margin-left: 8px;
}

.position-container-top-right [id^="GPsearchEngine-"] > div[id^=GPautoCompleteList],
.position-container-bottom-right [id^="GPsearchEngine-"] > div[id^=GPautoCompleteList] {
margin-right: 10px;
}

.gpf-widget-padding > div[id^=GPautoCompleteList] {
top: 100%;
width: 100%;
Expand Down
3 changes: 2 additions & 1 deletion src/packages/CSS/Controls/SearchEngine/GPFsearchEngine.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
display: flex;
}

#position-container-top-right > [id^="GPsearchEngine-"]{
#position-container-bottom-right > [id^="GPsearchEngine-"],
#position-container-top-right > [id^="GPsearchEngine-"] {
flex-direction: column;
align-items: end;
}
Expand Down

0 comments on commit a0df2c0

Please sign in to comment.