Skip to content

Conversation

pamelafox
Copy link
Collaborator

Purpose

Fixes #2399

Does this introduce a breaking change?

When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.

[ ] Yes
[X] No

Does this require changes to learn.microsoft.com docs?

This repository is referenced by this tutorial
which includes deployment, settings and usage instructions. If text or screenshot need to change in the tutorial,
check the box below and notify the tutorial author. A Microsoft employee can do this for you if you're an external contributor.

[ ] Yes
[X] No

Type of change

[X] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Code quality checklist

See CONTRIBUTING.md for more details.

  • The current tests all pass (python -m pytest).
  • I added tests that prove my fix is effective or that my feature works
  • I ran python -m pytest --cov to verify 100% coverage of added lines
  • I ran python -m mypy to check for type errors
  • I either used the pre-commit hooks or ran ruff and black manually on my code.

@pamelafox pamelafox requested a review from Copilot September 19, 2025 19:47
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the 1000 character input limit for the question textarea and enables automatic height adjustment to accommodate longer user inputs.

  • Removes the 1000 character validation limit from the question input handler
  • Enables automatic height adjustment for the textarea component
  • Updates CSS styling to support variable height containers and limits maximum textarea height

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
QuestionInput.tsx Removes character limit validation and adds autoAdjustHeight property
QuestionInput.module.css Updates container height behavior and adds textarea height constraints

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +30 to +32
.questionInputTextArea textarea {
max-height: 20rem;
overflow-y: auto !important;
Copy link
Preview

Copilot AI Sep 19, 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
.questionInputTextArea textarea {
max-height: 20rem;
overflow-y: auto !important;
.questionInputContainer .questionInputTextArea textarea {
max-height: 20rem;
overflow-y: auto;

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenAI Chat Prompt input limits
1 participant