feat(search): render results in responsive card grid with sprite preview and new-tab navigation (#479)

* feat(search): render results in responsive card grid with sprite preview and new-tab navigation

* fix(search): align semantic matched duration badge style with standard duration badge

* fix(webui): use pointer cursor instead of crosshair cursor for sprite scrubber on hover
This commit is contained in:
Yiling-J
2026-10-16 10:42:32 +08:00
committed by GitHub
parent 1a46f63160
commit 0f318b4050
10 changed files with 606 additions and 213 deletions
@@ -155,4 +155,19 @@ describe('SpriteScrubber', () => {
fireEvent.mouseMove(scrubberVideo, { clientX: 25 })
expect(scrubberVideo.getAttribute('data-frame')).toBe('25')
})
it('renders with cursor-pointer instead of cursor-crosshair for cards', () => {
const { getByTestId } = render(
<SpriteScrubber
spriteUrl="https://example.com/sprite.webp"
thumbnailUrl="https://example.com/thumb.webp"
videoWidth={1920}
videoHeight={1080}
/>,
)
const scrubber = getByTestId('sprite-scrubber')
expect(scrubber.className).toContain('cursor-pointer')
expect(scrubber.className).not.toContain('cursor-crosshair')
})
})