Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(search): lateral btn over autocomp results (mobile) #446

Merged
merged 3 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/carte/Controls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -720,13 +720,13 @@ const layerImportOptions = {
@media (max-width: 576px) {
.position-container-top-right,
.position-container-top-left {
top: 255px;
top: 299px;
}
.position-container-bottom-left,
.position-container-bottom-right,
.position-container-top-left,
.position-container-top-right {
height: calc(100% - 259px);
height: calc(100% - 303px);
}

/* Mode mobile : on positionne les dialog par dessus la barre de recherche
Expand Down
13 changes: 9 additions & 4 deletions src/components/menu/MenuLateralWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,17 +197,22 @@ En mode petit écran on le positionne tout en haut en attendant mieux */
}
}
/* Petits écrans */
@media (max-width: 576px) {
// FIXME : on cache les bouton "rouage" et "catalogue" si les résultats d'autocompletion sont affichés.
#mainMap:has(.GPautoCompleteList.GPelementVisible) ~ .menu-toggle-wrap > .menu-logo-list,
.menu-toggle-wrap:has(~ #mainMap .GPautoCompleteList.GPelementVisible) > .menu-logo-list {
display : none;
}
}

@media (max-width: 627px) {
// FIXME : on cache les bouton "rouage" et "catalogue" si un menu latéral est ouvert.
// Cette instruction contourne le css scopé pour selectionner le menu suivant (tild) si le menu scopé est expanded
.menu-toggle-wrap:has(~ .menu-toggle-wrap.is_expanded) > .menu-logo-list
.menu-toggle-wrap.is_expanded ~ .menu-toggle-wrap > .menu-logo-list {
display : none;
}

// Cette instruction contourne le css scopé pour selectionner le menu scopé s'il y a un menu expanded après (tild)
.menu-toggle-wrap:has(~ .menu-toggle-wrap.is_expanded) > .menu-logo-list {
display: none
}
/* Les panels de gestion des widgets et du catalogue prennent toute la largeur
sur petits écrans (<627px de large) et passent au dessus du reste */
.menu-toggle-wrap {
Expand Down