diff --git a/surfsense_web/components/assistant-ui/thread.tsx b/surfsense_web/components/assistant-ui/thread.tsx index c0139c1b7..904ee8c8b 100644 --- a/surfsense_web/components/assistant-ui/thread.tsx +++ b/surfsense_web/components/assistant-ui/thread.tsx @@ -713,6 +713,7 @@ const ComposerAction: FC = ({ isBlockedByOtherUser = false & { tooltip: ReactNode; side?: "top" | "bottom" | "left" | "right"; + disableTooltip?: boolean; }; export const TooltipIconButton = forwardRef( - ({ children, tooltip, side = "bottom", className, ...rest }, ref) => { + ({ children, tooltip, side = "bottom", className, disableTooltip, ...rest }, ref) => { + const isTouchDevice = useMediaQuery("(pointer: coarse)"); + const suppressTooltip = disableTooltip || isTouchDevice; + return ( - +