@gradio/gallery 0.13.8 → 0.13.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/shared/Gallery.svelte +3 -10
- package/package.json +9 -9
- package/shared/Gallery.svelte +3 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @gradio/gallery
|
|
2
2
|
|
|
3
|
+
## 0.13.9
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- [#10016](https://github.com/gradio-app/gradio/pull/10016) [`7b8f1e4`](https://github.com/gradio-app/gradio/commit/7b8f1e447acae4506236db9819c7c4a54f8b8153) - Fix double gallery close button in preview. Thanks @freddyaboulton!
|
|
8
|
+
|
|
9
|
+
### Dependency updates
|
|
10
|
+
|
|
11
|
+
- @gradio/video@0.11.9
|
|
12
|
+
- @gradio/atoms@0.11.2
|
|
13
|
+
- @gradio/utils@0.9.0
|
|
14
|
+
- @gradio/statustracker@0.9.6
|
|
15
|
+
- @gradio/upload@0.14.2
|
|
16
|
+
- @gradio/image@0.17.0
|
|
17
|
+
- @gradio/file@0.11.2
|
|
18
|
+
|
|
3
19
|
## 0.13.8
|
|
4
20
|
|
|
5
21
|
### Dependency updates
|
|
@@ -329,16 +329,14 @@ const toggle_full_screen = async () => {
|
|
|
329
329
|
class:fixed-height={mode !== "minimal" && (!height || height == "auto")}
|
|
330
330
|
class:hidden={is_full_screen}
|
|
331
331
|
>
|
|
332
|
+
{#if interactive && selected_index === null}
|
|
333
|
+
<ModifyUpload {i18n} on:clear={() => (value = [])} />
|
|
334
|
+
{/if}
|
|
332
335
|
<div
|
|
333
336
|
class="grid-container"
|
|
334
337
|
style="--grid-cols:{columns}; --grid-rows:{rows}; --object-fit: {object_fit}; height: {height};"
|
|
335
338
|
class:pt-6={show_label}
|
|
336
339
|
>
|
|
337
|
-
{#if interactive}
|
|
338
|
-
<div class="icon-button">
|
|
339
|
-
<ModifyUpload {i18n} on:clear={() => (value = [])} />
|
|
340
|
-
</div>
|
|
341
|
-
{/if}
|
|
342
340
|
{#each resolved_value as entry, i}
|
|
343
341
|
<button
|
|
344
342
|
class="thumbnail-item thumbnail-lg"
|
|
@@ -597,11 +595,6 @@ const toggle_full_screen = async () => {
|
|
|
597
595
|
white-space: nowrap;
|
|
598
596
|
}
|
|
599
597
|
|
|
600
|
-
.icon-button {
|
|
601
|
-
top: 1px;
|
|
602
|
-
right: 1px;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
598
|
.grid-wrap.minimal {
|
|
606
599
|
padding: 0;
|
|
607
600
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/gallery",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.9",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"private": false,
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"dequal": "^2.0.2",
|
|
11
|
-
"@gradio/atoms": "^0.11.
|
|
12
|
-
"@gradio/client": "^1.8.0",
|
|
13
|
-
"@gradio/image": "^0.16.8",
|
|
11
|
+
"@gradio/atoms": "^0.11.2",
|
|
14
12
|
"@gradio/icons": "^0.8.1",
|
|
15
|
-
"@gradio/
|
|
16
|
-
"@gradio/
|
|
17
|
-
"@gradio/
|
|
18
|
-
"@gradio/
|
|
19
|
-
"@gradio/
|
|
13
|
+
"@gradio/client": "^1.8.0",
|
|
14
|
+
"@gradio/image": "^0.17.0",
|
|
15
|
+
"@gradio/statustracker": "^0.9.6",
|
|
16
|
+
"@gradio/utils": "^0.9.0",
|
|
17
|
+
"@gradio/upload": "^0.14.2",
|
|
18
|
+
"@gradio/video": "^0.11.9",
|
|
19
|
+
"@gradio/file": "^0.11.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@gradio/preview": "^0.13.0"
|
package/shared/Gallery.svelte
CHANGED
|
@@ -388,16 +388,14 @@
|
|
|
388
388
|
class:fixed-height={mode !== "minimal" && (!height || height == "auto")}
|
|
389
389
|
class:hidden={is_full_screen}
|
|
390
390
|
>
|
|
391
|
+
{#if interactive && selected_index === null}
|
|
392
|
+
<ModifyUpload {i18n} on:clear={() => (value = [])} />
|
|
393
|
+
{/if}
|
|
391
394
|
<div
|
|
392
395
|
class="grid-container"
|
|
393
396
|
style="--grid-cols:{columns}; --grid-rows:{rows}; --object-fit: {object_fit}; height: {height};"
|
|
394
397
|
class:pt-6={show_label}
|
|
395
398
|
>
|
|
396
|
-
{#if interactive}
|
|
397
|
-
<div class="icon-button">
|
|
398
|
-
<ModifyUpload {i18n} on:clear={() => (value = [])} />
|
|
399
|
-
</div>
|
|
400
|
-
{/if}
|
|
401
399
|
{#each resolved_value as entry, i}
|
|
402
400
|
<button
|
|
403
401
|
class="thumbnail-item thumbnail-lg"
|
|
@@ -656,11 +654,6 @@
|
|
|
656
654
|
white-space: nowrap;
|
|
657
655
|
}
|
|
658
656
|
|
|
659
|
-
.icon-button {
|
|
660
|
-
top: 1px;
|
|
661
|
-
right: 1px;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
657
|
.grid-wrap.minimal {
|
|
665
658
|
padding: 0;
|
|
666
659
|
}
|