Skip to content

Commit

Permalink
Fix gallery thumbnail design regression (#7024)
Browse files Browse the repository at this point in the history
* tweak image thumbnail object fit

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
hannahblair and gradio-pr-bot committed Jan 15, 2024
1 parent 9cefd2e commit f2d69fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/orange-cameras-tell.md
@@ -0,0 +1,6 @@
---
"@gradio/gallery": minor
"gradio": minor
---

feat:Fix gallery thumbnail design regression
8 changes: 6 additions & 2 deletions js/gallery/shared/Gallery.svelte
Expand Up @@ -357,12 +357,16 @@
width: 100%;
display: flex;
}
.preview :global(img) {
.image-button :global(img) {
width: var(--size-full);
height: var(--size-full);
object-fit: contain;
}
.thumbnails :global(img) {
object-fit: cover;
width: var(--size-full);
height: var(--size-full);
}
.preview :global(img.with-caption) {
height: var(--size-full);
}
Expand Down

0 comments on commit f2d69fc

Please sign in to comment.