diff --git a/webapp/src/components/gallery/galleryCard.tsx b/webapp/src/components/gallery/galleryCard.tsx index ab11269b2..80bbe9a30 100644 --- a/webapp/src/components/gallery/galleryCard.tsx +++ b/webapp/src/components/gallery/galleryCard.tsx @@ -28,6 +28,7 @@ import {getCardContents} from '../../store/contents' import {getCardComments} from '../../store/comments' import './galleryCard.scss' +import {CardDetailProvider} from '../cardDetail/cardDetailContext' type Props = { board: Board @@ -120,29 +121,31 @@ const GalleryCard = React.memo((props: Props) => { } {!image && -
- {contents.map((block) => { - if (Array.isArray(block)) { - return block.map((b) => ( + +
+ {contents.map((block) => { + if (Array.isArray(block)) { + return block.map((b) => ( + + )) + } + + return ( - )) - } - - return ( - - ) - })} -
} + ) + })} +
+ } {props.visibleTitle &&
{ card.fields.icon ?
{card.fields.icon}
: undefined }