Skip to content
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,7 @@ We've introduced a lot of new components in `3.0`, including `Model3D`, `Dataset
* Mobile responsive guides by [@aliabd](https://github.com/aliabd) in [PR 1293](https://github.com/gradio-app/gradio/pull/1293)
* Update readme by [@abidlabs](https://github.com/abidlabs) in [PR 1292](https://github.com/gradio-app/gradio/pull/1292)
* gif by [@abidlabs](https://github.com/abidlabs) in [PR 1296](https://github.com/gradio-app/gradio/pull/1296)
* Fixed issue #2476 with upload dialog [@mezotaken](https://github.com/mezotaken) in [PR 2577](https://github.com/gradio-app/gradio/pull/2577)

## Contributors Shoutout:

Expand Down
8 changes: 7 additions & 1 deletion ui/packages/image/src/ModifySketch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@

<div class="z-50 top-2 right-2 justify-end flex gap-1 absolute">
<IconButton Icon={Undo} on:click={() => dispatch("undo")} />
<IconButton Icon={Clear} on:click={() => dispatch("clear")} />
<IconButton
Icon={Clear}
on:click={(event) => {
dispatch("clear");
event.stopPropagation();
}}
/>
</div>
2 changes: 1 addition & 1 deletion ui/packages/table/src/Table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@
flex={false}
center={false}
boundedheight={false}
click={false}
disable_click={true}
on:load={(e) => blob_to_string(data_uri_to_blob(e.detail.data))}
bind:dragging
>
Expand Down
8 changes: 7 additions & 1 deletion ui/packages/upload/src/ModifyUpload.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,11 @@
<IconButton Icon={Edit} on:click={() => dispatch("edit")} />
{/if}

<IconButton Icon={Clear} on:click={() => dispatch("clear")} />
<IconButton
Icon={Clear}
on:click={(event) => {
dispatch("clear");
event.stopPropagation();
}}
/>
</div>
3 changes: 1 addition & 2 deletions ui/packages/upload/src/Upload.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
export let include_file_metadata = true;
export let dragging = false;
export let boundedheight: boolean = true;
export let click: boolean = true;
export let center: boolean = true;
export let flex: boolean = true;
export let file_count: string = "single";
Expand All @@ -21,8 +20,8 @@
};

const openFileUpload = () => {
if (!click) return;
if (disable_click) return;
hidden_upload.value = "";
hidden_upload.click();
};

Expand Down