Skip to content

Conversation

@ethanwinters
Copy link
Contributor

The previous CSS only solution led to some strange results in Chrome for iOS including not being able to see the input field, and the ability the break everything across browsers by "overscrolling".

This PR introduces a new hook to manage freezing body scroll styles, and set the visual view port size based on JS measurements instead of CSS properties which could be unreliable on their own (especially in Chrome for iOS).

It also includes a change to generate isBrowser via function instead of a constant as it seemed like something were getting treeshaken away incorrectly. Finally, we had and extra - in our phone style name.

Testing instructions:

  • Make sure you can send/receive a message in the mobile device and the text input is always visible when the keyboard is open.
  • Try to scroll up and down aggressively to try to break out of the chat panel

Do this in iOS Safari, iOS Chrome and Android.

@ethanwinters ethanwinters requested a review from a team as a code owner November 24, 2025 13:20
@netlify
Copy link

netlify bot commented Nov 24, 2025

Deploy Preview for carbon-ai-chat-demo ready!

Name Link
🔨 Latest commit 0bf312b
🔍 Latest deploy log https://app.netlify.com/projects/carbon-ai-chat-demo/deploys/692461f5673e4900084d6ebc
😎 Deploy Preview https://deploy-preview-709--carbon-ai-chat-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@netlify
Copy link

netlify bot commented Nov 24, 2025

Deploy Preview for ai-chat-components-react ready!

Name Link
🔨 Latest commit 0bf312b
🔍 Latest deploy log https://app.netlify.com/projects/ai-chat-components-react/deploys/692461f5673e4900084d6ec1
😎 Deploy Preview https://deploy-preview-709--ai-chat-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@netlify
Copy link

netlify bot commented Nov 24, 2025

Deploy Preview for carbon-ai-chat-components ready!

Name Link
🔨 Latest commit 0bf312b
🔍 Latest deploy log https://app.netlify.com/projects/carbon-ai-chat-components/deploys/692461f5ef70c80008b12d98
😎 Deploy Preview https://deploy-preview-709--carbon-ai-chat-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@annawen1
Copy link
Member

@ethanwinters Can you share a screen recording of the issue? I'm not sure if I'm noticing the same issue, I recorded this one from iOS Safari, but not sure if this is the same thing you're mentioning

ScreenRecording_11-24-2025.14-54-37_1.MP4

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