Skip to content

Commit

Permalink
Chore: remove excess space from html preview (#27043)
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rajpal authored Oct 14, 2022
1 parent 9f26e96 commit ab7d97f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import OEmbedCollapseable from './OEmbedCollapseable';
import type { PreviewMetadata } from './PreviewList';

const OEmbedHtmlPreview = ({ html, ...props }: PreviewMetadata): ReactElement => (
<OEmbedCollapseable {...props}>
{html && <Box fontScale='p2' withRichContent dangerouslySetInnerHTML={{ __html: html }} />}
</OEmbedCollapseable>
<OEmbedCollapseable {...props}>{html && <Box withRichContent dangerouslySetInnerHTML={{ __html: html }} />}</OEmbedCollapseable>
);

export default OEmbedHtmlPreview;

0 comments on commit ab7d97f

Please sign in to comment.