mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-01 00:34:27 +03:00
Center the tooltip
This commit is contained in:
parent
41a609c503
commit
07ea7966db
@ -251,7 +251,14 @@ tabStyles customSpacing index isSelected =
|
|||||||
, Css.borderTopRightRadius (Css.px 10)
|
, Css.borderTopRightRadius (Css.px 10)
|
||||||
, Css.border3 (Css.px 1) Css.solid Colors.navy
|
, Css.border3 (Css.px 1) Css.solid Colors.navy
|
||||||
, Css.marginTop Css.zero
|
, Css.marginTop Css.zero
|
||||||
, Css.marginRight Css.zero
|
, Css.marginLeft
|
||||||
|
(if index == 0 then
|
||||||
|
Css.px 0
|
||||||
|
|
||||||
|
else
|
||||||
|
Css.px margin
|
||||||
|
)
|
||||||
|
, Css.marginRight (Css.px margin)
|
||||||
, Css.padding2 (Css.px 1) (Css.px 6)
|
, Css.padding2 (Css.px 1) (Css.px 6)
|
||||||
, Css.marginBottom (Css.px -1)
|
, Css.marginBottom (Css.px -1)
|
||||||
, Css.cursor Css.pointer
|
, Css.cursor Css.pointer
|
||||||
@ -265,11 +272,7 @@ tabStyles customSpacing index isSelected =
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
leftIndex =
|
margin =
|
||||||
if index == 0 then
|
Maybe.withDefault 10 customSpacing / 2
|
||||||
Css.marginLeft Css.zero
|
|
||||||
|
|
||||||
else
|
|
||||||
Css.marginLeft (Css.px (Maybe.withDefault 10 customSpacing))
|
|
||||||
in
|
in
|
||||||
leftIndex :: baseStyles ++ stylesTab ++ stylesDynamic
|
baseStyles ++ stylesTab ++ stylesDynamic
|
||||||
|
Loading…
Reference in New Issue
Block a user