feat: add thumbnail previews to admin panel for albums and hero images
- Add /api/admin/thumbnail/[id] proxy endpoint for serving Immich thumbnails - Show album cover thumbnails in AlbumCard components (subpages + standalone) - Show actual image thumbnails in AlbumPicker modal instead of emoji placeholders - Show small thumbnail previews for hero image entries - Add corresponding CSS styles for all thumbnail elements
This commit is contained in:
@@ -68,7 +68,12 @@ export default function AlbumPicker({ albums, onSelect, onClose, usedAlbumIds }:
|
||||
>
|
||||
<div className="picker-item-thumb">
|
||||
{album.thumbnailAssetId ? (
|
||||
<div className="picker-thumb-placeholder">📷</div>
|
||||
<img
|
||||
className="picker-thumb-img"
|
||||
src={`/api/admin/thumbnail/${album.thumbnailAssetId}`}
|
||||
alt=""
|
||||
loading="lazy"
|
||||
/>
|
||||
) : (
|
||||
<div className="picker-thumb-placeholder">📁</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user