Skip to content

Commit

Permalink
Merge branch 'main' into fix_tabs_in_row
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyaboulton authored Oct 25, 2024
2 parents d581ece + 854ec6f commit 759c42a
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 14 deletions.
8 changes: 8 additions & 0 deletions .changeset/clear-falcons-lose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@gradio/multimodaltextbox": patch
"@gradio/simpletextbox": patch
"@gradio/textbox": patch
"gradio": patch
---

fix:Fix a bug in example textbox rendering when it is initially invisible
5 changes: 5 additions & 0 deletions .changeset/cyan-lights-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": patch
---

feat:Pin multipart version to fix issues with yanking
2 changes: 1 addition & 1 deletion .github/actions/install-frontend-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
with:
path: |
js/lite/dist/**
key: gradio-lib-front-end-lite-${{ hashFiles('js/**', 'client/js/**', 'gradio/**')}}
key: gradio-lib-front-end-lite-${{ hashFiles('js/**', 'client/js/**', 'gradio/**', 'requirements.txt')}}
- name: Install pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # @v4
with:
Expand Down
7 changes: 3 additions & 4 deletions js/multimodaltextbox/Example.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
let el: HTMLDivElement;
function set_styles(element: HTMLElement, el_width: number): void {
if (!element || !el_width) return;
el.style.setProperty(
element.style.setProperty(
"--local-text-width",
`${el_width < 150 ? el_width : 200}px`
`${el_width && el_width < 150 ? el_width : 200}px`
);
el.style.whiteSpace = "unset";
element.style.whiteSpace = "unset";
}
onMount(() => {
Expand Down
7 changes: 3 additions & 4 deletions js/simpletextbox/Example.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
let el: HTMLDivElement;
function set_styles(element: HTMLElement, el_width: number): void {
if (!element || !el_width) return;
el.style.setProperty(
element.style.setProperty(
"--local-text-width",
`${el_width < 150 ? el_width : 200}px`
`${el_width && el_width < 150 ? el_width : 200}px`
);
el.style.whiteSpace = "unset";
element.style.whiteSpace = "unset";
}
onMount(() => {
Expand Down
7 changes: 3 additions & 4 deletions js/textbox/Example.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
let el: HTMLDivElement;
function set_styles(element: HTMLElement, el_width: number): void {
if (!element || !el_width) return;
el.style.setProperty(
element.style.setProperty(
"--local-text-width",
`${el_width < 150 ? el_width : 200}px`
`${el_width && el_width < 150 ? el_width : 200}px`
);
el.style.whiteSpace = "unset";
element.style.whiteSpace = "unset";
}
onMount(() => {
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packaging
pandas>=1.0,<3.0
pillow>=8.0,<12.0
pydantic>=2.0
python-multipart>=0.0.9,!=0.0.13 # required for fastapi forms. 0.0.13 was yanked from PyPI but micropip now ignores the yanked flag so we explicitly exclude it.
python-multipart==0.0.12 # required for fastapi forms. pinning to avoid yanking issues with micropip.
pydub
pyyaml>=5.0,<7.0
ruff>=0.2.2; sys.platform != 'emscripten'
Expand Down

0 comments on commit 759c42a

Please sign in to comment.