Merge pull request #600 from NoRedInk/raven/dont-shrink-icons

don't shrink icons in messages in narrow parents
This commit is contained in:
Tessa 2020-09-10 09:28:52 -07:00 committed by GitHub
commit 8298be4c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
]