Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
c43ae956
Commit
c43ae956
authored
Aug 05, 2021
by
Stefan Probst
Browse files
feat: display image caption
parent
c032ce3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/screens/item/ItemLayout.tsx
View file @
c43ae956
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment