style(documents): gate timeline bar hover under (hover: hover) (#385)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-08 11:32:31 +02:00
parent dd0a77a5a2
commit 18aaf1f3e8
2 changed files with 22 additions and 3 deletions

View File

@@ -104,9 +104,13 @@ function barHeight(count: number): number {
opacity: 0.7;
}
.bar:hover .bar-fill {
background-color: var(--palette-mint, #a1dcd8);
opacity: 0.85;
/* Gate hover under (hover: hover) so emulated mouse events on touch devices
don't leave a tapped bar stuck in :hover until the next tap elsewhere. */
@media (hover: hover) {
.bar:hover .bar-fill {
background-color: var(--palette-mint, #a1dcd8);
opacity: 0.85;
}
}
/* Graylog-style range selector window: left/right borders mark the dragged