@gradio/upload 0.3.2 → 0.3.3
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 +6 -0
- package/package.json +4 -4
- package/src/Upload.svelte +2 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# @gradio/upload
|
2
2
|
|
3
|
+
## 0.3.3
|
4
|
+
|
5
|
+
### Fixes
|
6
|
+
|
7
|
+
- [#6279](https://github.com/gradio-app/gradio/pull/6279) [`3cdeabc68`](https://github.com/gradio-app/gradio/commit/3cdeabc6843000310e1a9e1d17190ecbf3bbc780) - Ensure source selection does not get hidden in overflow. Thanks [@hannahblair](https://github.com/hannahblair)!
|
8
|
+
|
3
9
|
## 0.3.2
|
4
10
|
|
5
11
|
### Fixes
|
package/package.json
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gradio/upload",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.3",
|
4
4
|
"description": "Gradio UI packages",
|
5
5
|
"type": "module",
|
6
6
|
"main": "src/index.ts",
|
7
7
|
"author": "",
|
8
8
|
"license": "ISC",
|
9
9
|
"dependencies": {
|
10
|
-
"@gradio/atoms": "^0.2.
|
10
|
+
"@gradio/atoms": "^0.2.1",
|
11
11
|
"@gradio/icons": "^0.2.0",
|
12
|
-
"@gradio/client": "^0.7.
|
13
|
-
"@gradio/upload": "^0.3.
|
12
|
+
"@gradio/client": "^0.7.2",
|
13
|
+
"@gradio/upload": "^0.3.3",
|
14
14
|
"@gradio/utils": "^0.2.0"
|
15
15
|
},
|
16
16
|
"main_changeset": true,
|
package/src/Upload.svelte
CHANGED
@@ -13,6 +13,7 @@
|
|
13
13
|
export let disable_click = false;
|
14
14
|
export let root: string;
|
15
15
|
export let hidden = false;
|
16
|
+
export let include_sources = false;
|
16
17
|
|
17
18
|
// Needed for wasm support
|
18
19
|
const upload_fn = getContext<typeof upload_files>("upload_files");
|
@@ -94,6 +95,7 @@
|
|
94
95
|
class:center
|
95
96
|
class:boundedheight
|
96
97
|
class:flex
|
98
|
+
style:height={include_sources ? "calc(100% - 40px" : "100%"}
|
97
99
|
on:drag|preventDefault|stopPropagation
|
98
100
|
on:dragstart|preventDefault|stopPropagation
|
99
101
|
on:dragend|preventDefault|stopPropagation
|
@@ -122,7 +124,6 @@
|
|
122
124
|
button {
|
123
125
|
cursor: pointer;
|
124
126
|
width: var(--size-full);
|
125
|
-
height: var(--size-full);
|
126
127
|
}
|
127
128
|
|
128
129
|
.hidden {
|