Merge pull request #1170 from datopian/fix/iframe-height

[components][iFrame] Change default height
This commit is contained in:
João Demenech 2024-06-04 14:57:24 -03:00 committed by GitHub
commit 5deabac5fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
'@portaljs/components': patch
---
iFrame component: change height

View File

@ -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>
);
}

View File

@ -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` },
},
};