mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-24 22:21:45 +03:00
Left-align the premium checkboxes
This commit is contained in:
parent
9d3c509615
commit
d7b8db9387
@ -50,13 +50,14 @@ view config =
|
||||
[ if config.isPremium then
|
||||
premiumFlag
|
||||
|> Svg.withLabel "Premium"
|
||||
|> Svg.withWidth (Css.px 25)
|
||||
|> Svg.withWidth (Css.px iconWidth)
|
||||
|> Svg.withHeight (Css.px 30)
|
||||
|> Svg.withCss [ Css.marginRight (Css.px 8) ]
|
||||
|> Svg.withCss [ Css.marginRight (Css.px iconRightMargin) ]
|
||||
|> Svg.toHtml
|
||||
|
||||
else
|
||||
Html.text ""
|
||||
-- left-align the checkbox with checkboxes that _do_ have the premium pennant
|
||||
Html.div [ css [ Css.width (Css.px (iconWidth + iconRightMargin)) ] ] []
|
||||
, Checkbox.viewWithLabel
|
||||
{ identifier = config.id
|
||||
, label = config.label
|
||||
@ -76,3 +77,13 @@ view config =
|
||||
Checkbox.Square
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
iconWidth : Float
|
||||
iconWidth =
|
||||
25
|
||||
|
||||
|
||||
iconRightMargin : Float
|
||||
iconRightMargin =
|
||||
8
|
||||
|
Loading…
Reference in New Issue
Block a user