Underline 35mm equivalent when showing tooltip

This commit is contained in:
Sam Becker 2025-02-05 20:51:24 -06:00
parent b4fca1b46e
commit 559a445334
2 changed files with 9 additions and 2 deletions

View File

@ -27,7 +27,9 @@ export default function TooltipPrimitive({
useClickInsideOutside({
htmlElements: [refTrigger, refContent],
onClickOutside: () => setIsOpen(false),
onClickOutside: () => {
if (!supportsHover) { setIsOpen(false); }
},
});
return (

View File

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