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