Fix broken frontend when iframed (#1933)

* Updated version to 3.1.3a4

* Updated version to 3.1.3a5

* version change

* fix styl
This commit is contained in:
aliabid94 2022-08-02 09:36:50 -07:00 committed by GitHub
parent 59cf32e0f4
commit d7db15fb07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -1 +1 @@
3.1.3a3
3.1.3

View File

@ -55,7 +55,12 @@
</head>
<body style="width: 100%; margin: 0; padding: 0; height: 100%">
<gradio-app></gradio-app>
<gradio-app>
<div
id="root"
style="display: flex; flex-direction: column; flex-grow: 1"
></div>
</gradio-app>
<script>
const ce = document.getElementsByTagName("gradio-app");
if (ce[0]) {