Skip to content

Commit d9836b3

Browse files
authored
Merge pull request #28 from pngwn/fix
Fix
2 parents 635f7cc + 58fc510 commit d9836b3

File tree

3 files changed

+19
-35
lines changed

3 files changed

+19
-35
lines changed

frontend/shared/Image.svelte

+10-17
Original file line numberDiff line numberDiff line change
@@ -198,22 +198,15 @@
198198
.empty-wrap {
199199
pointer-events: none;
200200
}
201-
.icon-button {
201+
202+
203+
.icon-buttons {
204+
display: flex;
202205
position: absolute;
203-
top: 0px;
204-
right: 0px;
205-
z-index: var(--layer-1);
206-
}
207-
208-
.icon-buttons {
209-
display: flex;
210-
position: absolute;
211-
right: 34px;
212-
z-index: var(--layer-2);
213-
top: 8px;
214-
}
215-
216-
.icon-buttons .download-button-container {
217-
margin: var(--size-1) 0;
218-
}
206+
right: 8px;
207+
z-index: var(--layer-top);
208+
top: 8px;
209+
}
210+
211+
219212
</style>

frontend/shared/ImagePreview.svelte

+8-17
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,13 @@
7373
.hidden {
7474
opacity: 0;
7575
}
76-
.icon-button {
77-
position: absolute;
78-
top: 0px;
79-
right: 0px;
80-
z-index: var(--layer-1);
81-
}
82-
83-
.icon-buttons {
84-
display: flex;
85-
position: absolute;
86-
right: 6px;
87-
z-index: var(--layer-1);
88-
top: 6px;
89-
}
76+
9077
91-
.icon-buttons .download-button-container {
92-
margin: var(--size-1) 0;
93-
}
78+
.icon-buttons {
79+
display: flex;
80+
position: absolute;
81+
right: 8px;
82+
z-index: var(--layer-top);
83+
top: 8px;
84+
}
9485
</style>

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
88

99
[project]
1010
name = "gradio_imageslider"
11-
version = "0.0.19"
11+
version = "0.0.20"
1212

1313
description = """
1414
A Gradio component for comparing two images.

0 commit comments

Comments
 (0)