Fix AI Assistant modal shaking when content streams in#47616
Fix AI Assistant modal shaking when content streams in#47616
Conversation
The modal header used -32px negative margins that didn't match the actual modal padding, causing misalignment. Update to -24px to match the WordPress Modal component's content padding. Replace the separate <hr> divider element with a border-bottom on the header itself, and make the header sticky so it remains visible when modal content scrolls. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update negative margin and padding values from -32px to -24px in the feedback suggestion and title optimization footer components to match the corrected modal content padding from the ai-client package. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 Full summary · PHP report · JS report Coverage check overridden by
Coverage tests to be added later
|
Part of JPAI-95
Fixes a visual issue where the AI Assistant modal would shake/jitter as content streamed in.
Proposed changes
ai-client): The header used-32pxnegative margins that didn't match the WordPress Modal component's actual24pxcontent padding, causing layout instability as content changed. Corrected to-24px.ai-client): Replace the separate<hr>divider element with aborder-bottomon the header and addposition: stickyso the header stays in place when content scrolls, reducing visual jumpiness.plugins/jetpack): Update the feedback suggestion and title optimization footer components to use matching-24pxmargins/padding.Screen.Recording.2026-03-16.at.17.44.33.mov
Other information
Related product discussion/links
p1773669718127489-slack-CDLH4C1UZ
Does this pull request change what data or activity we track or use?
No.
Testing instructions