Skip to content
TypeScript

fix(web): keep message navigation visible on touch when there is room (#26806)

shivamc1f91b5be101
diff --git a/apps/web/src/components/chat/TimelineMinimap.tsx b/apps/web/src/components/chat/TimelineMinimap.tsx
index 742657ba68c..44747a808a2 100644
--- a/apps/web/src/components/chat/TimelineMinimap.tsx
+++ b/apps/web/src/components/chat/TimelineMinimap.tsx
@@ -115,10 +115,10 @@ export function TimelineMinimap({
return (
<div
className={cn(
- "group/minimap pointer-events-none absolute inset-y-0 left-0 z-40 hidden w-18 [@media(pointer:fine)]:block",
+ "group/minimap pointer-events-none absolute inset-y-0 left-0 z-40 w-18",
hasPersistentGutter
? "opacity-100"
- : "opacity-0 transition-opacity duration-150 hover:opacity-100 focus-within:opacity-100",
+ : "hidden opacity-0 transition-opacity duration-150 hover:opacity-100 focus-within:opacity-100 [@media(pointer:fine)]:block",
)}
data-testid="timeline-minimap"
data-persistent-gutter={hasPersistentGutter ? "true" : "false"}