Skip to content

Commit aec8b57

Browse files
authored
fix: iframe video in post content (#83)
1 parent 672d6b7 commit aec8b57

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@eleven-labs/design-system",
33
"description": "Design System for Eleven Labs",
4-
"version": "0.37.1",
4+
"version": "0.37.2",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/eleven-labs/design-system.git"

src/components/Molecules/ShareLinks/ShareLinks.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const ShareLinks: React.FC<ShareLinksProps> = ({ urlToShare, shares, ...f
3333
<Icon
3434
name="twitter"
3535
className="share-links__social-media-icon share-links__social-media-icon--twitter"
36-
size="36"
36+
size="36px"
3737
/>
3838
</a>
3939
)}
@@ -43,7 +43,7 @@ export const ShareLinks: React.FC<ShareLinksProps> = ({ urlToShare, shares, ...f
4343
target="_blank"
4444
rel="noreferrer"
4545
>
46-
<Icon name="facebook" className="share-links__social-media-icon" size="36" />
46+
<Icon name="facebook" className="share-links__social-media-icon" size="36px" />
4747
</a>
4848
)}
4949
{shares.linkedIn && (
@@ -52,7 +52,7 @@ export const ShareLinks: React.FC<ShareLinksProps> = ({ urlToShare, shares, ...f
5252
target="_blank"
5353
rel="noreferrer"
5454
>
55-
<Icon name="linkedin" className="share-links__social-media-icon" size="36" />
55+
<Icon name="linkedin" className="share-links__social-media-icon" size="36px" />
5656
</a>
5757
)}
5858
</Flex>

src/pages/PostPage/PostPage.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,11 @@ $headings-by-compoent-variant-name: (
113113
}
114114
}
115115
}
116+
117+
iframe {
118+
display: block;
119+
max-width: 100%;
120+
margin: #{map-get-strict($token-variables, 'spacing', 'xs')} auto;
121+
}
116122
}
117123
}

0 commit comments

Comments
 (0)