Skip to content

Commit

Permalink
Merge pull request #1170 from datopian/fix/iframe-height
Browse files Browse the repository at this point in the history
[components][iFrame] Change default height
  • Loading branch information
demenech committed Jun 4, 2024
2 parents 7094ede + 9690115 commit 5deabac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-rings-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@portaljs/components': patch
---

iFrame component: change height
2 changes: 1 addition & 1 deletion packages/components/src/components/Iframe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function Iframe({ data, style }: IframeProps) {
return (
<iframe
src={url}
style={style ?? { width: `100%`, height: `100%` }}
style={style ?? { width: `100%`, height: `600px` }}
></iframe>
);
}
2 changes: 1 addition & 1 deletion packages/components/stories/Iframe.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ export const Normal: Story = {
data: {
url: 'https://app.powerbi.com/view?r=eyJrIjoiYzBmN2Q2MzYtYzE3MS00ODkxLWE5OWMtZTQ2MjBlMDljMDk4IiwidCI6Ijk1M2IwZjgzLTFjZTYtNDVjMy04MmM5LTFkODQ3ZTM3MjMzOSIsImMiOjh9',
},
style: { width: `100%`, height: `100%` },
style: { width: `100%`, height: `600px` },
},
};

0 comments on commit 5deabac

Please sign in to comment.