Skip to content

Commit

Permalink
fix width height no default
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebarkmin committed Jun 15, 2023
1 parent e1fc449 commit a3496b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-moons-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperbook/element-embed": patch
---

fix width and height having no defaults
4 changes: 2 additions & 2 deletions packages/element-embed/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ type DirectiveEmbedProps = {

const DirectiveEmbed: FC<DirectiveEmbedProps> = ({
src,
width,
height,
width = "100%",
height = "400px",
title,
allowFullScreen = true,
aspectRatio,
Expand Down

1 comment on commit a3496b4

@vercel
Copy link

@vercel vercel bot commented on a3496b4 Jun 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.