Skip to content

Commit

Permalink
fix: view caption for all videos in video gallery block (#760)
Browse files Browse the repository at this point in the history
* fix: added caption to youtube videos

* fix: code refactoring to use just one caption for all options
  • Loading branch information
Wagner3UB authored Sep 5, 2024
1 parent fbc8cda commit 34e43d7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,17 @@ const ViewBlock = ({
type="video/mp4"
/>
) : data.allowExternals ? (
<Embed url={data.url} {...embedSettings} />
<Embed url={data.url} {...embedSettings} />
) : (
<div className="invalidVideoFormat" />
)}
{showVideoCaption && (
<p className="px-3 mt-2 figure-caption">{data.title}</p>
)}
</>
)}
</>
)}
{showVideoCaption && (
<p className="px-3 mt-2 figure-caption">{data.title}</p>
)}
</ConditionalEmbed>
</div>
) : null;
Expand Down

0 comments on commit 34e43d7

Please sign in to comment.