mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-28 01:45:20 +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.border3 (Css.px 1) Css.solid Colors.navy
|
||||
, 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.marginBottom (Css.px -1)
|
||||
, Css.cursor Css.pointer
|
||||
@ -265,11 +272,7 @@ tabStyles customSpacing index isSelected =
|
||||
]
|
||||
]
|
||||
|
||||
leftIndex =
|
||||
if index == 0 then
|
||||
Css.marginLeft Css.zero
|
||||
|
||||
else
|
||||
Css.marginLeft (Css.px (Maybe.withDefault 10 customSpacing))
|
||||
margin =
|
||||
Maybe.withDefault 10 customSpacing / 2
|
||||
in
|
||||
leftIndex :: baseStyles ++ stylesTab ++ stylesDynamic
|
||||
baseStyles ++ stylesTab ++ stylesDynamic
|
||||
|
Loading…
Reference in New Issue
Block a user