Skip to content

Commit a162653

Browse files
fix: text area background color (microsoft#50)
* fix: text area background color * Cursor hover style and Light dark color updated
1 parent bea0205 commit a162653

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,16 @@
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 = "#efefef";
232+
taskMessageTextareaElement.style.cursor = 'not-allowed';
229233
} else {
230234
taskMessageTextareaElement.removeAttribute('disabled')
235+
taskMessageTextareaElement.style.backgroundColor = "white"
236+
taskMessageTextareaElement.style.cursor = '';
231237
}
232238
if(isHumanClarificationRequestNull && taskMessageAddButton){
233239
taskMessageAddButton.setAttribute('disabled', true)
@@ -236,6 +242,15 @@
236242
taskMessageAddButton.removeAttribute('disabled')
237243
taskMessageAddButton.style.cursor = 'pointer';
238244
}
245+
246+
if(isHumanClarificationRequestNull && textInputContainer[0]){
247+
textInputContainer[0].style.backgroundColor = '#efefef';
248+
textInputContainer[0].style.cursor = 'not-allowed';
249+
} else {
250+
textInputContainer[0].style.backgroundColor = 'white';
251+
textInputContainer[0].style.cursor = '';
252+
}
253+
239254
})
240255
.catch((error) => {
241256
console.error("Error:", error);

0 commit comments

Comments
 (0)