fix(ui): scope hovers to mouse

This commit is contained in:
7w1 committed 2026-07-20 22:09:16 -05:00
1 parent 7445dba890
commit 906572dab6
3 files changed
+32 -8

No files matched your search

+8 -8
View File
@@ -2,10 +2,10 @@ import { globalStyle } from '@vanilla-extract/css';
globalStyle(
`
button,
[role="button"],
[class*="Button"],
[class*="Chip"],
button,
[role="button"],
[class*="Button"],
[class*="Chip"],
[class*="MenuItem"]
`,
{
@@ -15,9 +15,9 @@ globalStyle(
globalStyle(
`
button:active,
[role="button"]:active,
[class*="Button"]:active,
button:active,
[role="button"]:active,
[class*="Button"]:active,
[class*="Chip"]:active
`,
{
@@ -27,7 +27,7 @@ globalStyle(
globalStyle(
`
button:hover,
button:hover,
[role="button"]:hover
`,
{
+23
View File
@@ -0,0 +1,23 @@
/*
* Overrides for touch-only devices.
* - Tapping a button no longer scales or translates to avoid weird ghost press effects.
* - Hovering no longer leaves a background color highlight on the timeline.
*/
@media (hover: none) {
html body button:active,
html body [role="button"]:active,
html body [class*="Button"]:active,
html body [class*="Chip"]:active {
transform: none !important;
}
html body button:hover,
html body [role="button"]:hover {
transform: none !important;
}
html body [data-message-id][data-message-item]:hover {
background-color: transparent !important;
}
}
+1
View File
@@ -17,6 +17,7 @@ import './app/styles/themes.css';
import './app/styles/overrides/General.css';
import './app/styles/overrides/Privacy.css';
import './app/styles/overrides/TauriDesktop.css';
import './app/styles/overrides/TouchDevices.css';
import { createLogger } from './app/utils/debug';
import { installConsolePasteScamWarning } from './app/utils/consolePasteScamWarning';
import { registerMatrixUriProtocol } from './app/plugins/matrix-uri';