Skip to content

Commit

Permalink
Quick Image + Text Component Fixes (#6635)
Browse files Browse the repository at this point in the history
* fixes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
dawoodkhan82 and gradio-pr-bot committed Dec 8, 2023
1 parent 5df7eaa commit 4a6b980
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .changeset/little-dodos-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@gradio/image": patch
"@gradio/textbox": patch
"gradio": patch
---

fix:Quick Image + Text Component Fixes
5 changes: 2 additions & 3 deletions js/image/shared/Image.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@

<style>
img {
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
border-radius: var(--radius-lg);
max-width: none;
}
</style>
2 changes: 1 addition & 1 deletion js/textbox/shared/Textbox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
event: Event | { target: HTMLTextAreaElement | HTMLInputElement }
): Promise<void> {
await tick();
if (lines === max_lines || !container) return;
if (lines === max_lines) return;
let max =
max_lines === undefined
Expand Down

0 comments on commit 4a6b980

Please sign in to comment.