Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

feat(frontend): suppress tooltips on touch devices (#9001)

Lincoln Stein5f35d0e43297
diff --git a/invokeai/frontend/web/src/app/components/ThemeLocaleProvider.tsx b/invokeai/frontend/web/src/app/components/ThemeLocaleProvider.tsx
index 437cecd492..62b7114288 100644
--- a/invokeai/frontend/web/src/app/components/ThemeLocaleProvider.tsx
+++ b/invokeai/frontend/web/src/app/components/ThemeLocaleProvider.tsx
@@ -2,6 +2,7 @@ import '@fontsource-variable/inter';
import 'overlayscrollbars/overlayscrollbars.css';
import '@xyflow/react/dist/base.css';
import 'common/components/OverlayScrollbars/overlayscrollbars.css';
+import 'app/components/touchDevice.css';
import { ChakraProvider, DarkMode, extendTheme, theme as baseTheme, TOAST_OPTIONS } from '@invoke-ai/ui-library';
import { useStore } from '@nanostores/react';
diff --git a/invokeai/frontend/web/src/app/components/touchDevice.css b/invokeai/frontend/web/src/app/components/touchDevice.css
new file mode 100644
index 0000000000..4753e2a9a8
--- /dev/null
+++ b/invokeai/frontend/web/src/app/components/touchDevice.css
@@ -0,0 +1,7 @@
+/* Hide tooltips on touch devices where hover gets "stuck" */
+@media (hover: none) {
+ [role='tooltip'] {
+ visibility: hidden !important;
+ opacity: 0 !important;
+ }
+}