Commit c43ae956 authored by Stefan Probst's avatar Stefan Probst
Browse files

feat: display image caption

parent c032ce3f
......@@ -351,6 +351,7 @@ function ItemMedia({ media }: { media: Item['media'] }) {
const currentMediaUrl =
current.info?.location?.sourceUrl ?? getMediaFileUrl({ mediaId })
const currentMediaCategory = current.info?.category
const currentMediaCaption = current.caption
return (
<section>
......@@ -380,6 +381,7 @@ function ItemMedia({ media }: { media: Item['media'] }) {
</a>
</div>
)}
<p className="m-1.5">{currentMediaCaption ?? <span>&nbsp;</span>}</p>
</div>
</div>
<div className="flex justify-center border border-gray-200">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment