From 605bc1760144d898ba8dd56c19409fb3d4eacafd Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Thu, 10 Sep 2020 08:26:54 -0500 Subject: [PATCH] don't shrink icons in messages in narrow parents --- src/Nri/Ui/Message/V2.elm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Nri/Ui/Message/V2.elm b/src/Nri/Ui/Message/V2.elm index 9929163a..994ac442 100644 --- a/src/Nri/Ui/Message/V2.elm +++ b/src/Nri/Ui/Message/V2.elm @@ -569,7 +569,7 @@ getIcon size theme = |> NriSvg.withColor Colors.yellow |> NriSvg.withWidth iconSize |> NriSvg.withHeight iconSize - |> NriSvg.withCss [ marginRight ] + |> NriSvg.withCss [ marginRight, Css.flexShrink Css.zero ] |> NriSvg.withLabel "Tip" |> NriSvg.toHtml @@ -578,7 +578,7 @@ getIcon size theme = |> NriSvg.withColor Colors.navy |> NriSvg.withWidth iconSize |> NriSvg.withHeight iconSize - |> NriSvg.withCss [ marginRight ] + |> NriSvg.withCss [ marginRight, Css.flexShrink Css.zero ] |> NriSvg.withLabel "Tip" |> NriSvg.toHtml @@ -591,6 +591,7 @@ getIcon size theme = , Css.marginRight (Css.px 20) , backgroundColor Colors.navy , displayFlex + , Css.flexShrink Css.zero , alignItems center , justifyContent center ]