Skip to content

Commit 073c03f

Browse files
PR Batch Testerclaude
andcommitted
fix(web): timeline minimap stays visible on touch when there is room
The minimap was hidden for any non-fine pointer, so a Surface Pro dropped it when its keyboard was detached even with a wide gutter. Only hide it on coarse pointers when it would otherwise rely on hover to appear. Fixes #26190 Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent fe219c4 commit 073c03f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/web/src/components/chat/TimelineMinimap.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ export function TimelineMinimap({
115115
return (
116116
<div
117117
className={cn(
118-
"group/minimap pointer-events-none absolute inset-y-0 left-0 z-40 hidden w-18 [@media(pointer:fine)]:block",
118+
"group/minimap pointer-events-none absolute inset-y-0 left-0 z-40 w-18",
119119
hasPersistentGutter
120120
? "opacity-100"
121-
: "opacity-0 transition-opacity duration-150 hover:opacity-100 focus-within:opacity-100",
121+
: "hidden opacity-0 transition-opacity duration-150 hover:opacity-100 focus-within:opacity-100 [@media(pointer:fine)]:block",
122122
)}
123123
data-testid="timeline-minimap"
124124
data-persistent-gutter={hasPersistentGutter ? "true" : "false"}

0 commit comments

Comments
 (0)