feat: removed tooltips on mobile

This commit is contained in:
Nick 2025-01-03 18:29:59 -06:00
parent ad3a7eac94
commit 86430b122c
6 changed files with 98 additions and 51 deletions

View file

@ -302,7 +302,7 @@ contentList shared model isLinkClicked index argument =
]
, detailFormat row
[ strengthMaker shared
, barMaker getConfidenceTooltip argument.argumentCertainty
, barMaker shared getConfidenceTooltip argument.argumentCertainty
]
]
]
@ -372,14 +372,22 @@ copyButton shared model isLinkClicked index argument =
strengthMaker : Shared.Model -> Element msg
strengthMaker shared =
el
(if not shared.isNavbarExpanded then
[ tooltip
"This represents how pleasant the host was to engage with."
True
]
(case ( shared.device.class, shared.device.orientation ) of
( Phone, Portrait ) ->
[]
else
[]
( Tablet, Portrait ) ->
[]
_ ->
if not shared.isNavbarExpanded then
[ tooltip
"This represents my confidence that the argument is sound."
True
]
else
[]
)
<|
detailTitleMaker TextLightOrange "Confidence:"