Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/src/components/chat/ExpandedImageDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export const ExpandedImageDialog = memo(function ExpandedImageDialog({
<ChevronLeftIcon className="size-5" />
</Button>
)}
<MediaActions source={actionsSource}>
<MediaActions source={actionsSource} showTooltip={false}>
<div className="relative isolate z-10 flex max-h-full max-w-[var(--media-width)] flex-col items-center">
{item.type === "video" ? (
<ExpandedVideo key={index} item={item} />
Expand Down
4 changes: 3 additions & 1 deletion apps/web/src/components/media/MediaActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,11 @@ export function useMediaActions(source: MediaActionSource) {
export function MediaActions({
source,
children,
showTooltip = true,
}: {
source: MediaActionSource;
children: ReactElement;
showTooltip?: boolean;
}) {
const { save, copyImage, canReadMedia, assertCanReadMedia } = useMediaActions(source);
const [tooltipOpen, setTooltipOpen] = useState(false);
Expand Down Expand Up @@ -204,7 +206,7 @@ export function MediaActions({
};

return (
<Tooltip open={tooltipOpen} onOpenChange={setTooltipOpen}>
<Tooltip disabled={!showTooltip} open={tooltipOpen} onOpenChange={setTooltipOpen}>
<TooltipTrigger
render={children}
tabIndex={0}
Expand Down
Loading