Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(timeline): wrap hover-tooltip tags so a long tag list doesn't stretch it

Louis Beaumont0518f25fbbab
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx
index 340e87e53..3d4f5a04b 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx
@@ -1947,7 +1947,7 @@ export const TimelineSlider = ({
{/* Tooltip on hover — rendered via portal to escape overflow clipping */}
{shouldShowTooltip && hoveredRect && createPortal(
<div
- className="fixed z-[9999] w-max bg-popover border border-border rounded-lg px-3 py-2 text-xs shadow-2xl pointer-events-none"
+ className="fixed z-[9999] w-max max-w-[280px] bg-popover border border-border rounded-lg px-3 py-2 text-xs shadow-2xl pointer-events-none"
style={{
left: `clamp(80px, ${hoveredRect.x}px, calc(100vw - 80px))`,
top: `${hoveredRect.y}px`,
@@ -1997,9 +1997,11 @@ export const TimelineSlider = ({
</p>
)}
{hasTags && (
- <p className="text-primary flex items-center gap-1 mt-1 text-[11px]">
- <span>{frameTags.join(', ')}</span>
- </p>
+ <div className="flex flex-wrap gap-1 mt-1.5 max-w-full">
+ {frameTags.map((t) => (
+ <span key={t} className="text-[10px] leading-none text-primary bg-primary/15 rounded px-1.5 py-0.5 break-all">{t}</span>
+ ))}
+ </div>
)}
{/* UI events section */}
{(() => {