The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 07:00 UTC
fix(web): hide image action tooltip in expanded viewer (#29329)
Yash Singh committed
Nov 2, 2026 at 07:42 UTC
701e13cebb040d8433cd9aefb803ddd0d58c41d6
2 files changed
+4
-2
apps/web/src/components/chat/ExpandedImageDialog.tsx
+1
-1
@@ -208,7 +208,7 @@ export const ExpandedImageDialog = memo(function ExpandedImageDialog({
208
<ChevronLeftIcon className="size-5" />
209
</Button>
210
)}
211
- <MediaActions source={actionsSource}>
211
+ <MediaActions source={actionsSource} showTooltip={false}>
212
<div className="relative isolate z-10 flex max-h-full max-w-[var(--media-width)] flex-col items-center">
213
{item.type === "video" ? (
214
<ExpandedVideo key={index} item={item} />
apps/web/src/components/media/MediaActions.tsx
+3
-1
@@ -113,9 +113,11 @@ export function useMediaActions(source: MediaActionSource) {
113
export function MediaActions({
114
source,
115
children,
116
+ showTooltip = true,
117
}: {
118
source: MediaActionSource;
119
children: ReactElement;
120
+ showTooltip?: boolean;
121
}) {
122
const { save, copyImage, canReadMedia, assertCanReadMedia } = useMediaActions(source);
123
const [tooltipOpen, setTooltipOpen] = useState(false);
@@ -204,7 +206,7 @@ export function MediaActions({
206
};
207
208
return (
207
- <Tooltip open={tooltipOpen} onOpenChange={setTooltipOpen}>
209
+ <Tooltip disabled={!showTooltip} open={tooltipOpen} onOpenChange={setTooltipOpen}>
210
<TooltipTrigger
211
render={children}
212
tabIndex={0}