Files
znakovni.hr/packages/frontend
johnny2211 8c8ac8d1bb Fix GIF preview display in dictionary word cards
Problem: GIFs were created successfully but not displaying in the dictionary listing.

Root cause: WordCard component was using raw relative URLs for GIF images:
- Before: src={gifMedia.url} → Browser requested from frontend domain
- After: src={getVideoUrl(gifMedia.url)} → Correctly requests from backend

Changes:
- Import getVideoUrl helper from videoPlaylist.ts
- Use getVideoUrl() to convert relative GIF URLs to absolute backend URLs
- Add null check to handle cases where getVideoUrl returns null

This matches the pattern used in VideoUpload.tsx which was already working correctly.

Result: GIF previews now display properly in dictionary word cards.

Co-Authored-By: Auggie
2026-01-18 18:12:15 +01:00
..