Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

.questionInputTextArea {
width: 100%;
line-height: 2.5rem;
line-height: 1.5rem;
}

.questionInputButtonsContainer {
Expand All @@ -21,6 +21,13 @@

@media (min-width: 992px) {
.questionInputContainer {
height: 5.625rem;
/* Allow container to expand with growing multiline input (was fixed height) */
min-height: 5.625rem;
}
}

/* Limit uncontrolled growth while still allowing larger prompts; enable scrolling inside textarea if very large */
.questionInputTextArea textarea {
max-height: 20rem;
overflow-y: auto !important;
Copy link
Preview

Copilot AI Sep 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using !important should be avoided as it makes CSS harder to maintain and override. Consider using more specific selectors or restructuring the CSS hierarchy to achieve the same result without !important.

Suggested change
overflow-y: auto !important;
overflow-y: auto;

Copilot uses AI. Check for mistakes.

}
3 changes: 2 additions & 1 deletion app/frontend/src/components/QuestionInput/QuestionInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const QuestionInput = ({ onSend, disabled, placeholder, clearOnSend, init
const onQuestionChange = (_ev: React.FormEvent<HTMLInputElement | HTMLTextAreaElement>, newValue?: string) => {
if (!newValue) {
setQuestion("");
} else if (newValue.length <= 1000) {
} else {
setQuestion(newValue);
}
};
Expand All @@ -78,6 +78,7 @@ export const QuestionInput = ({ onSend, disabled, placeholder, clearOnSend, init
disabled={disableRequiredAccessControl}
placeholder={placeholder}
multiline
autoAdjustHeight
resizable={false}
borderless
value={question}
Expand Down
Loading