Skip to content

Commit 7191b13

Browse files
fix: text area background color
1 parent bea0205 commit 7191b13

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/frontend/wwwroot/task/task.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ textarea {
241241
justify-content: space-between;
242242
align-items: left;
243243
padding: 0px 5px;
244-
background-color: white;
245244
}
246245

247246
.bottom-bar {
@@ -251,7 +250,6 @@ textarea {
251250
padding: 3px 10px;
252251
border-top: none;
253252
border-bottom: 4px solid #0f6cbd;
254-
background-color: white;
255253
}
256254

257255
.send-button {

src/frontend/wwwroot/task/task.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,14 @@
224224
const isHumanClarificationRequestNull = data?.[0]?.human_clarification_request === null
225225
const taskMessageTextareaElement =document.getElementById("taskMessageTextarea");
226226
const taskMessageAddButton = document.getElementById("taskMessageAddButton");
227+
const textInputContainer = document.getElementsByClassName("text-input-container");
228+
227229
if(isHumanClarificationRequestNull && taskMessageTextareaElement){
228230
taskMessageTextareaElement.setAttribute('disabled', true)
231+
taskMessageTextareaElement.style.backgroundColor = "lightgray"
229232
} else {
230233
taskMessageTextareaElement.removeAttribute('disabled')
234+
taskMessageTextareaElement.style.backgroundColor = "white"
231235
}
232236
if(isHumanClarificationRequestNull && taskMessageAddButton){
233237
taskMessageAddButton.setAttribute('disabled', true)
@@ -236,6 +240,13 @@
236240
taskMessageAddButton.removeAttribute('disabled')
237241
taskMessageAddButton.style.cursor = 'pointer';
238242
}
243+
244+
if(isHumanClarificationRequestNull && textInputContainer[0]){
245+
textInputContainer[0].style.backgroundColor = 'lightgray';
246+
} else {
247+
textInputContainer[0].style.backgroundColor = 'white';
248+
}
249+
239250
})
240251
.catch((error) => {
241252
console.error("Error:", error);

0 commit comments

Comments
 (0)