Skip to content

Commit

Permalink
Merge pull request #28 from pngwn/fix
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
pngwn authored Apr 19, 2024
2 parents 635f7cc + 58fc510 commit d9836b3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 35 deletions.
27 changes: 10 additions & 17 deletions frontend/shared/Image.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -198,22 +198,15 @@
.empty-wrap {
pointer-events: none;
}
.icon-button {
.icon-buttons {
display: flex;
position: absolute;
top: 0px;
right: 0px;
z-index: var(--layer-1);
}
.icon-buttons {
display: flex;
position: absolute;
right: 34px;
z-index: var(--layer-2);
top: 8px;
}
.icon-buttons .download-button-container {
margin: var(--size-1) 0;
}
right: 8px;
z-index: var(--layer-top);
top: 8px;
}
</style>
25 changes: 8 additions & 17 deletions frontend/shared/ImagePreview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,13 @@
.hidden {
opacity: 0;
}
.icon-button {
position: absolute;
top: 0px;
right: 0px;
z-index: var(--layer-1);
}
.icon-buttons {
display: flex;
position: absolute;
right: 6px;
z-index: var(--layer-1);
top: 6px;
}
.icon-buttons .download-button-container {
margin: var(--size-1) 0;
}
.icon-buttons {
display: flex;
position: absolute;
right: 8px;
z-index: var(--layer-top);
top: 8px;
}
</style>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "hatchling.build"

[project]
name = "gradio_imageslider"
version = "0.0.19"
version = "0.0.20"

description = """
A Gradio component for comparing two images.
Expand Down

0 comments on commit d9836b3

Please sign in to comment.