Add photo action tooltips

This commit is contained in:
Sam Becker 2025-04-29 23:37:47 -05:00
parent e18fe3e193
commit b34710016e
3 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ export default function DownloadButton({
return (
<LoaderButton
title="Download Original File"
tooltip="Download Original File"
className={clsx(
className,
'text-medium',

View File

@ -438,7 +438,7 @@ export default function PhotoLarge({
)}>
{showZoomControls &&
<LoaderButton
title="Open Image Viewer"
tooltip="Zoom In"
icon={<LuExpand size={15} />}
onClick={() => refZoomControls.current?.open()}
styleAs="link"
@ -447,7 +447,7 @@ export default function PhotoLarge({
/>}
{shouldShare &&
<ShareButton
title="Share Photo"
tooltip="Share Photo"
photo={photo}
tag={shouldShareTag ? primaryTag : undefined}
camera={shouldShareCamera ? camera : undefined}

View File

@ -11,16 +11,16 @@ import { useRouter } from 'next/navigation';
let prefetchedImage: HTMLImageElement | null = null;
export default function ShareButton({
title,
dim,
prefetch,
className,
tooltip,
...rest
}: {
title?: string
dim?: boolean
prefetch?: boolean
className?: string
tooltip?: string
} & ShareModalProps) {
const { setShareModalProps } = useAppState();
@ -37,7 +37,7 @@ export default function ShareButton({
return (
<LoaderButton
title={title}
tooltip={tooltip}
onClick={() => setShareModalProps?.({ ...rest })}
className={clsx(
className,