onhover logout should not trigger tooltip on username
@@ -96,21 +96,18 @@ viewLoginState userState isUserMenuExpanded =
, onMouseLeave <| Hover Nothing
]
)
- (Html.text displayName
- :: (if isUserMenuExpanded then
- [ Html.div
+ [ Html.text displayName ]
+ , if isUserMenuExpanded then
+ Html.div
([ id "logout-button"
, onClick <| Click LogoutButton
]
++ Styles.logoutButton
)
[ Html.text "logout" ]
- ]
else
- []
- )
- )
+ Html.text ""
]
]
