]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix(toasts): IE11 shrinks toasts when in flex container, unless we specify flex-basis
authorGaël Poupard <gael.poupard@orange.com>
Wed, 3 Jun 2020 13:27:50 +0000 (15:27 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 10 Jun 2020 05:14:30 +0000 (08:14 +0300)
scss/_toasts.scss

index 6aa5352a383ccb41d3c6871bed0df5a17f03c10a..1d9ec13578c4f554f3207f5f8b03d43e36f254bb 100644 (file)
@@ -1,4 +1,7 @@
 .toast {
+  // Prevents from shrinking in IE11, when in a flex container
+  // See https://github.com/twbs/bootstrap/issues/28341
+  flex-basis: $toast-max-width;
   max-width: $toast-max-width;
   overflow: hidden; // cheap rounded corners on nested items
   @include font-size($toast-font-size);