mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-05 15:44:28 +00:00
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:
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user