Skip to content

Commit

Permalink
fix: added class figure-caption to the video caption
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB committed Aug 26, 2024
1 parent 3d9c140 commit 14c410f
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/components/ItaliaTheme/Blocks/VideoGallery/Block/ViewBlock.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ const ViewBlock = ({
}`}
{...embedSettings}
/>
{showVideoCaption && <p className="px-3">{data.title}</p>}
{showVideoCaption && (
<p className="px-3 mt-2 figure-caption">{data.title}</p>
)}
</>
) : (
<>
Expand All @@ -114,7 +116,9 @@ const ViewBlock = ({
source="youtube"
{...embedSettings}
/>
{showVideoCaption && <p className="px-3">{data.title}</p>}
{showVideoCaption && (
<p className="px-3 mt-2 figure-caption">{data.title}</p>
)}
</>
)}
</>
Expand All @@ -127,7 +131,9 @@ const ViewBlock = ({
source="vimeo"
{...embedSettings}
/>
{showVideoCaption && <p className="px-3">{data.title}</p>}
{showVideoCaption && (
<p className="px-3 mt-2 figure-caption">{data.title}</p>
)}
</>
) : (
<>
Expand All @@ -148,12 +154,16 @@ const ViewBlock = ({
controls
type="video/mp4"
/>
{showVideoCaption && <p className="px-3">{data.title}</p>}
{showVideoCaption && (
<p className="px-3 mt-2 figure-caption">{data.title}</p>
)}
</>
) : data.allowExternals ? (
<>
<Embed url={data.url} {...embedSettings} />
{showVideoCaption && <p className="px-3">{data.title}</p>}
{showVideoCaption && (
<p className="px-3 mt-2 figure-caption">{data.title}</p>
)}
</>
) : (
<div className="invalidVideoFormat" />
Expand Down

0 comments on commit 14c410f

Please sign in to comment.