scss: keep correct $buttons-order value when previous button is missing (#41889) #196

Closed
csechet wants to merge 1 commits from wip/41889-conserver-le-positionnement-des-bouttons into main
1 changed files with 12 additions and 1 deletions

View File

@ -663,11 +663,22 @@ div.select2-search {
}
// Buttons order & alignment configuration
$previous-is-grow: index($buttons-order, previous grow);
@if $buttons-order or $buttons-alignment {
.quixote:not(#wf-actions) div.buttons {
display: flex;
flex-wrap: wrap;
justify-content: $buttons-alignment;
@if $previous-is-grow and not $buttons-alignment {
@if ($previous-is-grow == 1) {
justify-content: flex-end;
}
@if ($previous-is-grow == 2) {
justify-content: space-between;
}
} @else {
justify-content: $buttons-alignment;
}
margin-right: -1.5em;
@media (min-width: $very-small-limit + 1) {