Skip to content

Commit

Permalink
Prevent overflow in Model3D (#8975)
Browse files Browse the repository at this point in the history
* add overflow and radius css properties

* add changeset

* add changeset

* add changes to input

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
hannahblair and gradio-pr-bot authored Aug 5, 2024
1 parent a043b0c commit 3feea64
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/rude-results-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/model3d": minor
"gradio": minor
---

feat:Prevent overflow in Model3D
2 changes: 2 additions & 0 deletions js/model3D/shared/Model3D.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
position: relative;
width: var(--size-full);
height: var(--size-full);
border-radius: var(--block-radius);
overflow: hidden;
}
.model3D :global(canvas) {
width: var(--size-full);
Expand Down
2 changes: 2 additions & 0 deletions js/model3D/shared/Model3DUpload.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@
align-items: center;
width: var(--size-full);
height: var(--size-full);
border-radius: var(--block-radius);
overflow: hidden;
}
.input-model :global(canvas) {
Expand Down

0 comments on commit 3feea64

Please sign in to comment.