From dd22a92e33e916bc75f3c74c22b91e9e3dd72700 Mon Sep 17 00:00:00 2001 From: Ayes Date: Fri, 18 Nov 2022 22:11:12 +0200 Subject: [PATCH] Adjusted styling and classes --- src/app/molecules/media/Media.jsx | 75 ++++++++++++++++-------------- src/app/molecules/media/Media.scss | 16 ++++--- 2 files changed, 50 insertions(+), 41 deletions(-) diff --git a/src/app/molecules/media/Media.jsx b/src/app/molecules/media/Media.jsx index 5bbff64e..dea58a60 100644 --- a/src/app/molecules/media/Media.jsx +++ b/src/app/molecules/media/Media.jsx @@ -373,30 +373,31 @@ function IframePlayer({ }; return ( -
-
- {`${sitename} - ${title}`} +
+
+
+ {`${sitename} - ${title}`} - window.open(link)} - /> -
- -
- {!videoStarted && {`${sitename}} - {!videoStarted && } - - {videoStarted && ( -
- {children} -
- )} + window.open(link)} + /> +
+
+ {videoStarted ? ( +
+ {children} +
+ ) : ( + <> + {`${sitename} + + + )} +
); @@ -454,8 +455,10 @@ function Embed({ link }) { // Image only embed if (image != null && urlPreviewInfo['og:title'] == null && urlPreviewInfo['og:description'] == null) { return ( -
- {image} +
+
+ {image} +
); } @@ -463,8 +466,8 @@ function Embed({ link }) { const embedTitle = urlPreviewInfo['og:title'] || urlPreviewInfo['og:site_name']; return ( -
-
+
+
{(embedTitle != null) && ( @@ -536,15 +539,17 @@ function YoutubeEmbed({ link }) { if (urlPreviewInfo !== null) { return ( - -