Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Gallery preview overlay and backdrop #7505

Merged
merged 9 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/young-emus-find.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@gradio/app": patch
"@gradio/gallery": patch
"gradio": patch
---

fix:Fix `Gallery` preview overlay and backdrop
1 change: 1 addition & 0 deletions js/app/src/Blocks.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,7 @@

.backdrop {
flex: 1 1 0%;
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
}

Expand Down
16 changes: 12 additions & 4 deletions js/gallery/shared/Gallery.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,22 @@
.preview {
display: flex;
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
flex-direction: column;
z-index: var(--layer-2);
border-radius: calc(var(--block-radius) - var(--block-border-width));
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
width: var(--size-full);
height: var(--size-full);
}

.preview::before {
content: "";
position: absolute;
z-index: var(--layer-below);
background: var(--background-fill-primary);
opacity: 0.9;
width: var(--size-full);
height: var(--size-full);
}

Expand Down