Skip to content

fix: improve contact form input behavior - #37

Merged
kamycoding merged 1 commit into
mainfrom
fix/contact-form-ux
Aug 11, 2026
Merged

fix: improve contact form input behavior#37
kamycoding merged 1 commit into
mainfrom
fix/contact-form-ux

Conversation

@kamycoding

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 11, 2026 21:06
@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploy Preview for fanciful-cannoli-268c0c ready!

Name Link
🔨 Latest commit 56e87ed
🔍 Latest deploy log https://app.netlify.com/projects/fanciful-cannoli-268c0c/deploys/6a7b8ed7776b3c0008adee45
😎 Deploy Preview https://deploy-preview-37--fanciful-cannoli-268c0c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@kamycoding
kamycoding merged commit 06092c6 into main Aug 11, 2026
5 checks passed
@kamycoding
kamycoding deleted the fix/contact-form-ux branch August 11, 2026 21:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Improves the contact form’s message textarea behavior by making it dynamically resize during typing and adjusting layout/styling so the field can expand.

Changes:

  • Added an (input) handler to grow the message textarea based on content.
  • Updated the contact field grid row sizing to allow the textarea row to expand.
  • Tweaked contact input/textarea styling (box sizing, placeholder visibility, textarea wrapping/resize behavior).

Reviewed changes

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

File Description
src/app/pages/home/sections/contact/contact.ts Adds textarea auto-grow handler for message input.
src/app/pages/home/sections/contact/contact.html Wires the message textarea (input) event to the new handler.
src/app/pages/home/sections/contact/contact.css Updates grid sizing and textarea/input styles to support expanding height.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +101 to +112
protected growMessage(event: Event): void {
const textarea = event.currentTarget as HTMLTextAreaElement;

if (!textarea.value) {
textarea.style.height = '';
return;
}

if (textarea.scrollHeight > textarea.clientHeight) {
textarea.style.height = `${textarea.scrollHeight}px`;
}
}
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.

2 participants