fix(chat-panel): constrain images in Kapa answers to panel width - #412
fix(chat-panel): constrain images in Kapa answers to panel width#412JakeSCahill wants to merge 1 commit into
Conversation
Kapa recently launched image support in answers. Images rendered at natural width with no limit, stretching the answer column and clipping content on the right. Add max-width: 100% / height: auto under #chat-panel-kapa-root in both the main chat panel CSS and the Bump.sh widget CSS, per Kapa's recommended fix. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ Deploy Preview for docs-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughBoth Kapa chat panel stylesheets now constrain chat images to the container width. The rules preserve each image’s aspect ratio through automatic height scaling. Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/css/chat-panel-bump.cssParsing error: Unexpected token . src/css/chat-panel.cssParsing error: Unexpected token . Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |

Summary
Kapa flagged a rendering issue in our Ask AI widget since they launched image support: when an answer includes an image, it renders at natural width with no limit, which stretches the answer column sideways and clips the image, code, and text on the right.
This applies Kapa's recommended fix, scoped under our chat panel root:
Changes
src/css/chat-panel.css- main docs site chat panelsrc/css/chat-panel-bump.css- Ask AI drawer widget on the Bump.sh API reference pages (duplicates the panel styles, so it needs the same rule)The compiled widget CSS under
src/static/assets/widgets/css/is gitignored build output and gets regenerated bygulp compile:widgetsduring bundling.Testing
gulp lintpasses🤖 Generated with Claude Code