Skip to content

Commit

Permalink
Fix multimodal textbox placeholder (#8455)
Browse files Browse the repository at this point in the history
* fix placeholder

* add changeset

* add changeset

* placeholder spacing fix for other themes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
dawoodkhan82 and gradio-pr-bot authored Jun 4, 2024
1 parent 4a55157 commit a970589
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .changeset/quick-waves-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/multimodaltextbox": patch
"gradio": patch
---

feat:Fix multimodal textbox placeholder
17 changes: 9 additions & 8 deletions js/multimodaltextbox/shared/MultimodalTextbox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,9 @@
.input-container {
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
justify-content: center;
position: relative;
}
textarea {
Expand All @@ -323,17 +324,17 @@
border: none;
margin-top: 0px;
margin-bottom: 0px;
margin-left: 35px;
margin-left: 5%;
padding-top: 12px;
resize: none;
}
textarea:disabled {
-webkit-text-fill-color: var(--body-text-color);
-webkit-opacity: 1;
opacity: 1;
width: 100%;
margin-left: 0px;
width: 90%;
max-width: 95%;
margin-left: 35px;
}
textarea::placeholder {
Expand All @@ -353,7 +354,7 @@
border-radius: 50%;
width: 30px;
height: 30px;
bottom: 15px;
bottom: 5px;
}
.upload-button:hover,
Expand All @@ -367,7 +368,7 @@
}
.submit-button {
right: 15px;
right: 0px;
margin-left: 5px;
padding-bottom: 5px;
padding-left: 2px;
Expand All @@ -381,7 +382,7 @@
}
.upload-button {
left: 10px;
left: 0px;
margin-right: 5px;
}
Expand Down

0 comments on commit a970589

Please sign in to comment.