-
{`${sitename} - ${title}`}
+
+
+
+ {`${sitename} - ${title}`}
- window.open(link)}
- />
-
-
-
- {!videoStarted &&
}
- {!videoStarted &&
}
-
- {videoStarted && (
-
- {children}
-
- )}
+
window.open(link)}
+ />
+
+
+ {videoStarted ? (
+
+ {children}
+
+ ) : (
+ <>
+
+
+ >
+ )}
+
);
@@ -454,8 +455,10 @@ function Embed({ link }) {
// Image only embed
if (image != null && urlPreviewInfo['og:title'] == null && urlPreviewInfo['og:description'] == null) {
return (
-
- {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 (
-
-
-
+
+
+
+
+
);
}
diff --git a/src/app/molecules/media/Media.scss b/src/app/molecules/media/Media.scss
index 4bd1d894..5b4a8662 100644
--- a/src/app/molecules/media/Media.scss
+++ b/src/app/molecules/media/Media.scss
@@ -90,12 +90,16 @@
}
.embed-container {
- color: var(--tc-surface-low);
- background-color: var(--bg-surface-hover);
- border-radius: calc(var(--bo-radius) / 2);
- padding: 15px;
+ margin-top: 5px;
- .embed-text {
- margin-bottom: 5px;
+ .embed {
+ color: var(--tc-surface-low);
+ background-color: var(--bg-surface-hover);
+ border-radius: calc(var(--bo-radius) / 2);
+ padding: 15px;
+
+ .embed-text {
+ margin-bottom: 5px;
+ }
}
}
\ No newline at end of file