Skip to content
Snippets Groups Projects
Verified Commit ade41e89 authored by Dorian Koch's avatar Dorian Koch
Browse files

Use thumbnail url from backend everywhere, closes #66

parent c2729e5f
No related branches found
No related tags found
No related merge requests found
Pipeline #6829 passed
...@@ -40,7 +40,10 @@ export function VideoCard({ ...@@ -40,7 +40,10 @@ export function VideoCard({
height: "auto", height: "auto",
width: "170px", width: "170px",
}} }}
src={`${api.assetUrl()}/thumbnail/l_${lecture.id}.jpg`} src={
lecture.thumbnail_url ??
`${api.assetUrl()}/thumbnail/l_${lecture.id}.jpg`
}
alt="Vorschaubild" alt="Vorschaubild"
/> />
<div className="col-4"> <div className="col-4">
...@@ -72,7 +75,10 @@ export function VideoCard({ ...@@ -72,7 +75,10 @@ export function VideoCard({
<img <img
width="170" width="170"
height="100" height="100"
src={`${api.assetUrl()}/thumbnail/l_${lecture.id}.jpg`} src={
lecture.thumbnail_url ??
`${api.assetUrl()}/thumbnail/l_${lecture.id}.jpg`
}
alt="Vorschaubild" alt="Vorschaubild"
/> />
</li> </li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment