diff --git a/apps/web/src/pages/health/MediaLibrary.tsx b/apps/web/src/pages/health/MediaLibrary.tsx index f2cafb3..c5bf4a6 100644 --- a/apps/web/src/pages/health/MediaLibrary.tsx +++ b/apps/web/src/pages/health/MediaLibrary.tsx @@ -158,7 +158,11 @@ export default function MediaLibrary() { cover={
toggleSelect(item.id)} style={{ height: 140, display: 'flex', alignItems: 'center', justifyContent: 'center', background: 'var(--ant-color-fill-quaternary, #f5f5f5)', overflow: 'hidden', position: 'relative', cursor: 'pointer' }}> {isImage(item.content_type) ? ( - {item.alt_text + { + const base = (item.thumbnail_path || item.storage_path).replace(/^\.\//, '/'); + const token = localStorage.getItem('access_token'); + return token ? `${base}?token=${token}` : base; + })()} alt={item.alt_text || item.filename} style={{ width: '100%', height: '100%', objectFit: 'cover' }} /> ) : ( )}