Underline 35mm equivalent when showing tooltip
This commit is contained in:
parent
b4fca1b46e
commit
559a445334
@ -27,7 +27,9 @@ export default function TooltipPrimitive({
|
||||
|
||||
useClickInsideOutside({
|
||||
htmlElements: [refTrigger, refContent],
|
||||
onClickOutside: () => setIsOpen(false),
|
||||
onClickOutside: () => {
|
||||
if (!supportsHover) { setIsOpen(false); }
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
@ -262,7 +262,12 @@ export default function PhotoLarge({
|
||||
<>
|
||||
{' '}
|
||||
<Tooltip content="35mm equivalent" sideOffset={3}>
|
||||
<span className="text-extra-dim">
|
||||
<span
|
||||
className={clsx(
|
||||
'text-extra-dim',
|
||||
'hover:underline decoration-dotted',
|
||||
)}
|
||||
>
|
||||
{photo.focalLengthIn35MmFormatFormatted}
|
||||
</span>
|
||||
</Tooltip>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user