Skip to content

Commit

Permalink
fix: iframe video in post content (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpasquet authored May 3, 2024
1 parent 672d6b7 commit aec8b57
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@eleven-labs/design-system",
"description": "Design System for Eleven Labs",
"version": "0.37.1",
"version": "0.37.2",
"repository": {
"type": "git",
"url": "https://github.com/eleven-labs/design-system.git"
Expand Down
6 changes: 3 additions & 3 deletions src/components/Molecules/ShareLinks/ShareLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const ShareLinks: React.FC<ShareLinksProps> = ({ urlToShare, shares, ...f
<Icon
name="twitter"
className="share-links__social-media-icon share-links__social-media-icon--twitter"
size="36"
size="36px"
/>
</a>
)}
Expand All @@ -43,7 +43,7 @@ export const ShareLinks: React.FC<ShareLinksProps> = ({ urlToShare, shares, ...f
target="_blank"
rel="noreferrer"
>
<Icon name="facebook" className="share-links__social-media-icon" size="36" />
<Icon name="facebook" className="share-links__social-media-icon" size="36px" />
</a>
)}
{shares.linkedIn && (
Expand All @@ -52,7 +52,7 @@ export const ShareLinks: React.FC<ShareLinksProps> = ({ urlToShare, shares, ...f
target="_blank"
rel="noreferrer"
>
<Icon name="linkedin" className="share-links__social-media-icon" size="36" />
<Icon name="linkedin" className="share-links__social-media-icon" size="36px" />
</a>
)}
</Flex>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/PostPage/PostPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,11 @@ $headings-by-compoent-variant-name: (
}
}
}

iframe {
display: block;
max-width: 100%;
margin: #{map-get-strict($token-variables, 'spacing', 'xs')} auto;
}
}
}

0 comments on commit aec8b57

Please sign in to comment.