Skip to content

Commit

Permalink
Hide embedded components while loading (gradio-app#8773)
Browse files Browse the repository at this point in the history
* styling

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
  • Loading branch information
3 people committed Jul 15, 2024
1 parent 4030f28 commit 0b9e870
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-showers-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"website": minor
---

feat:Hide embedded components while loading
4 changes: 4 additions & 0 deletions js/_website/src/lib/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ strong {
.embedded-component .gradio-container footer {
display: none !important;
}
.embedded-component:has(.loading) {
visibility: hidden;
height: 0;
}

.obj .codeblock {
@apply my-4;
Expand Down

0 comments on commit 0b9e870

Please sign in to comment.