Merge pull request #880 from NoRedInk/growth/dont-shrink-premium-flags

Adds flex-shrink: 0 to checkbox premium flags
This commit is contained in:
Tessa 2022-03-22 16:57:55 -07:00 committed by GitHub
commit 866cfb88e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,7 +190,7 @@ view { label, onChange } attributes =
else
-- left-align the checkbox with checkboxes that _do_ have the premium pennant
Html.div [ css [ Css.width (Css.px (iconWidth + iconRightMargin)) ] ] []
Html.div [ css [ Css.width (Css.px (iconWidth + iconRightMargin)), Css.flexShrink Css.zero ] ] []
, Checkbox.viewWithLabel
{ identifier = idValue
, label = label
@ -270,7 +270,7 @@ viewPremiumFlag =
|> Svg.withLabel "Premium"
|> Svg.withWidth (Css.px iconWidth)
|> Svg.withHeight (Css.px 30)
|> Svg.withCss [ Css.marginRight (Css.px iconRightMargin) ]
|> Svg.withCss [ Css.marginRight (Css.px iconRightMargin), Css.flexShrink Css.zero ]
|> Svg.toHtml