Skip to content

Commit

Permalink
Fix API page code snippets in safari (#4924)
Browse files Browse the repository at this point in the history
* changes

* changes
  • Loading branch information
aliabid94 authored Jul 14, 2023
1 parent b39bc26 commit 3474122
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* The `.change()` event is fixed in `Video` and `Image` so that it only fires once by [@abidlabs](https://github.com/abidlabs) in [PR 4793](https://github.com/gradio-app/gradio/pull/4793)
* The `.change()` event is fixed in `Audio` so that fires when the component value is programmatically updated by [@abidlabs](https://github.com/abidlabs) in [PR 4793](https://github.com/gradio-app/gradio/pull/4793)
- Fixed bug where `gr.Video` could not preprocess urls by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 4904](https://github.com/gradio-app/gradio/pull/4904)
- Fixed copy button rendering in API page on Safari by [@aliabid94](https://github.com/aliabid94) in [PR 4924](https://github.com/gradio-app/gradio/pull/4924)

## Other Changes:

Expand Down
5 changes: 3 additions & 2 deletions js/app/src/api_docs/CodeSnippets.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ result = client.predict(<!--
-->{/if}<!--
--><span class="desc"
><!--
--> # {python_type.type} {#if python_type.description}({python_type.description}){/if}<!--
--> in '{label}' <!--
--> # {python_type.type} {#if python_type.description}({python_type.description}) {/if}<!--
-->in '{label}' <!--
-->{component} component<!--
--></span
><!--
Expand Down Expand Up @@ -156,6 +156,7 @@ console.log(result.data);
code {
position: relative;
display: block;
}
.copy {
Expand Down
1 change: 1 addition & 0 deletions js/app/src/api_docs/InstallSnippet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
code {
position: relative;
display: block;
}
.copy {
Expand Down

1 comment on commit 3474122

@vercel
Copy link

@vercel vercel bot commented on 3474122 Jul 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.