Projet

Général

Profil

0001-scss-keep-correct-buttons-order-value-when-previous-.patch

Thomas Jund, 30 novembre 2021 12:34

Télécharger (1,17 ko)

Voir les différences:

Subject: [PATCH] scss: keep correct $buttons-order value when previous button
 is missing (#41889)

 static/includes/_forms.scss | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
static/includes/_forms.scss
598 598
}
599 599

  
600 600
// Buttons order & alignment configuration
601
$previous-is-grow: index($buttons-order, previous grow);
601 602
@if $buttons-order or $buttons-alignment {
602 603
	.quixote:not(#wf-actions) div.buttons {
603 604
		display: flex;
604 605
		flex-wrap: wrap;
605
		justify-content: $buttons-alignment;
606
		@if $previous-is-grow and not $buttons-alignment  {
607
			@if ($previous-is-grow == 1) {
608
				justify-content: flex-end;
609
			}
610
			@if ($previous-is-grow == 2) {
611
				justify-content: space-between;
612
			}
613
		} @else {
614
			justify-content: $buttons-alignment;
615
		}
606 616

  
607 617
		@each $btn, $grow in $buttons-order {
608 618
			$i: index($buttons-order, $btn);
609
-