Skip to content

Commit 5f35d0e

Browse files
authored
feat(frontend): suppress tooltips on touch devices (#9001)
* feat(frontend): suppress tooltips on touch devices * fix(frontend): change selector to role="tooltip" because .chakra-tooltip does not match * chore(frontend): lint:prettier
1 parent f0d09c3 commit 5f35d0e

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

invokeai/frontend/web/src/app/components/ThemeLocaleProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import '@fontsource-variable/inter';
22
import 'overlayscrollbars/overlayscrollbars.css';
33
import '@xyflow/react/dist/base.css';
44
import 'common/components/OverlayScrollbars/overlayscrollbars.css';
5+
import 'app/components/touchDevice.css';
56

67
import { ChakraProvider, DarkMode, extendTheme, theme as baseTheme, TOAST_OPTIONS } from '@invoke-ai/ui-library';
78
import { useStore } from '@nanostores/react';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* Hide tooltips on touch devices where hover gets "stuck" */
2+
@media (hover: none) {
3+
[role='tooltip'] {
4+
visibility: hidden !important;
5+
opacity: 0 !important;
6+
}
7+
}

0 commit comments

Comments
 (0)