From 34e43d77f7510e623216d4b2b431bbd038fdcca3 Mon Sep 17 00:00:00 2001 From: Wagner Trezub <60133113+Wagner3UB@users.noreply.github.com> Date: Thu, 5 Sep 2024 09:12:16 +0200 Subject: [PATCH] fix: view caption for all videos in video gallery block (#760) * fix: added caption to youtube videos * fix: code refactoring to use just one caption for all options --- .../ItaliaTheme/Blocks/VideoGallery/Block/ViewBlock.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ItaliaTheme/Blocks/VideoGallery/Block/ViewBlock.jsx b/src/components/ItaliaTheme/Blocks/VideoGallery/Block/ViewBlock.jsx index ae47d8ea6..49bc829d6 100644 --- a/src/components/ItaliaTheme/Blocks/VideoGallery/Block/ViewBlock.jsx +++ b/src/components/ItaliaTheme/Blocks/VideoGallery/Block/ViewBlock.jsx @@ -139,17 +139,17 @@ const ViewBlock = ({ type="video/mp4" /> ) : data.allowExternals ? ( - + ) : (
)} - {showVideoCaption && ( -

{data.title}

- )} )} )} + {showVideoCaption && ( +

{data.title}

+ )}
) : null;