scss: keep correct $buttons-order value when previous button is missing (#41889) #196
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue