mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-12 12:40:29 +08:00
fix height in iframe (#9669)
* fix height in iframe * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
a26beb5531
commit
70998ea752
5
.changeset/salty-corners-melt.md
Normal file
5
.changeset/salty-corners-melt.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@self/app": patch
|
||||
---
|
||||
|
||||
fix:fix height in iframe
|
@ -13,6 +13,21 @@
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<script data-gradio-mode>
|
||||
window.__gradio_mode__ = "app";
|
||||
window.iFrameResizer = {
|
||||
heightCalculationMethod: "taggedElement"
|
||||
};
|
||||
window.parent?.postMessage(
|
||||
{ type: "SET_SCROLLING", enabled: false },
|
||||
"*"
|
||||
);
|
||||
</script>
|
||||
<script
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"
|
||||
async
|
||||
></script>
|
||||
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body
|
||||
|
Loading…
x
Reference in New Issue
Block a user