refactor: update media icons in MediaLibraryPage for clarity
Some checks failed
Deploy Development / deploy (push) Successful in 37s
Test Suite / pytest-backend (push) Successful in 24s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 7s
Test Suite / playwright-tests (push) Failing after 1m42s

- Renamed imported media icons to avoid naming conflicts, using 'LucideImage' and 'LucideVideo' for better clarity.
- Updated the MediaTypeGlyph component to utilize the renamed icons for rendering media types, ensuring consistent icon representation.
This commit is contained in:
Lars 2026-05-08 08:59:13 +02:00
parent 5b13a0a526
commit bebcf5af73

View File

@ -13,8 +13,8 @@ import {
CircleDot,
FilePenLine,
Copyright,
Image,
Video,
Image as LucideImage,
Video as LucideVideo,
FileText,
File,
Upload,
@ -219,8 +219,8 @@ function MediaTypeGlyph({ mimeType, compact }) {
const kind = previewDisplayKind(mimeType)
const label = MEDIA_KIND_LABELS[kind] || 'Medium'
let Icon = File
if (kind === 'image') Icon = Image
else if (kind === 'video') Icon = Video
if (kind === 'image') Icon = LucideImage
else if (kind === 'video') Icon = LucideVideo
else if (kind === 'pdf') Icon = FileText
const sz = compact ? 12 : 14
return (