Center the tooltip

This commit is contained in:
Tessa Kelly 2020-09-08 11:49:05 -07:00
parent 41a609c503
commit 07ea7966db

View File

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