Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(media): enlarge floating lane remove targets (#5426)

[._.]/ Adam Eivy2ab654f12ae6
diff --git a/client/src/components/media/VideoTimelineLanes.jsx b/client/src/components/media/VideoTimelineLanes.jsx
index bf1479d170..06d4178ce1 100644
--- a/client/src/components/media/VideoTimelineLanes.jsx
+++ b/client/src/components/media/VideoTimelineLanes.jsx
@@ -134,7 +134,7 @@ export const LaneBlock = memo(function LaneBlock({
type="button"
onClick={(e) => { e.stopPropagation(); onRemove(entry._key); }}
onPointerDown={(e) => e.stopPropagation()}
- className="absolute bottom-0 right-0 p-0.5 text-white/70 hover:text-port-error"
+ className="absolute bottom-0 right-0 inline-flex min-w-[28px] min-h-[28px] items-center justify-center p-1 text-white/70 hover:text-port-error"
title="Remove"
aria-label={`Remove ${label} from timeline`}
>
diff --git a/client/src/components/media/VideoTimelineLanes.test.jsx b/client/src/components/media/VideoTimelineLanes.test.jsx
index eae715c5cf..307b299200 100644
--- a/client/src/components/media/VideoTimelineLanes.test.jsx
+++ b/client/src/components/media/VideoTimelineLanes.test.jsx
@@ -161,16 +161,22 @@ describe('LaneBlock — free-floating overlay/bed placement', () => {
expect(screen.queryByText('gone.png')).not.toBeInTheDocument();
});
- it('removes without also selecting the block', () => {
+ it('provides a 28px hit target and removes without selecting the block', () => {
const onSelect = vi.fn();
const onRemove = vi.fn();
render(
<LaneBlock entry={entry} label="logo.png" tone="" isSelected={false} isMissing={false} pxPerSec={40} onSelect={onSelect} onRemove={onRemove} />,
);
- fireEvent.click(screen.getByRole('button', { name: 'Remove logo.png from timeline' }));
+ const remove = screen.getByRole('button', { name: 'Remove logo.png from timeline' });
+ expect(remove.className).toContain('min-w-[28px]');
+ expect(remove.className).toContain('min-h-[28px]');
+
+ fireEvent.pointerDown(remove);
+ fireEvent.click(remove);
expect(onSelect).not.toHaveBeenCalled();
+ expect(onRemove).toHaveBeenCalledOnce();
expect(onRemove).toHaveBeenCalledWith('ov-1');
});
});