mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-06 12:30:29 +08:00
ensure iframe is correct size on spaces (#5447)
This commit is contained in:
parent
67bb7bcb6a
commit
7a4a89e5ca
6
.changeset/six-months-act.md
Normal file
6
.changeset/six-months-act.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/app": patch
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:ensure iframe is correct size on spaces
|
@ -36,6 +36,9 @@
|
||||
|
||||
<script>
|
||||
window.__gradio_mode__ = "app";
|
||||
window.iFrameResizer = {
|
||||
heightCalculationMethod: "taggedElement",
|
||||
}
|
||||
</script>
|
||||
|
||||
%gradio_config%
|
||||
|
@ -20,6 +20,7 @@
|
||||
class="gradio-container gradio-container-{version}"
|
||||
style:min-height={loaded ? "initial" : initial_height}
|
||||
style:flex-grow={!display ? "1" : "auto"}
|
||||
data-iframe-height
|
||||
>
|
||||
<div class="main">
|
||||
<slot />
|
||||
|
Loading…
x
Reference in New Issue
Block a user