Skip to content

Commit

Permalink
Fix the gallery losing columns issue when alignments are applied (#9694)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nahid F. Mohit authored and jasmussen committed Oct 15, 2018
1 parent e8aa683 commit 24c9674
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/block-library/src/gallery/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,12 @@
max-width: $content-width / 2;
width: 100%;
}

// Keep the display property consistent when alignments are applied
// to preserve columns
&.alignleft,
&.aligncenter,
&.alignright {
display: flex;
}
}

0 comments on commit 24c9674

Please sign in to comment.