Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Chatbot): Handle zoom appropriately #338

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

rebeccaalpert
Copy link
Member

@rebeccaalpert rebeccaalpert commented Nov 25, 2024

Allows entire chatbot to scroll like a normal website when zoom is high. Hides jump links since they won't work. Also adds responsive styles to chatbot on docked and overlay.

One example is here: https://chatbot-pr-chatbot-338.surge.sh/patternfly-ai/chatbot/overview/demo/basic-chatbot/; go to 150% or 200%.

@patternfly-build
Copy link

patternfly-build commented Nov 25, 2024

Allows entire chatbot to scroll like a normal website when zoom is high. Hides jump links since they won't work. Also adds responsive styles to chatbot on docked and overlay.
Copy link

@kaylachumley kaylachumley left a comment

Choose a reason for hiding this comment

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

looks good to me!

// 30rem is the width of the docked chatbot
// if the screen is smaller, we want to be 100%
@media screen and (max-width: 30rem) {
padding-right: 0px;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: rather than padding right, I think you should use padding-inline-start to maintain right to left language support.

Copy link
Contributor

@nicolethoen nicolethoen left a comment

Choose a reason for hiding this comment

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

Only one nit

@nicolethoen nicolethoen merged commit b0887a6 into patternfly:main Dec 3, 2024
5 checks passed
Copy link

github-actions bot commented Dec 3, 2024

🎉 This PR is included in version 2.1.0-prerelease.23 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

v6 chatbot - docked and overlay need better responsive behavior v6 chatbot - Handle zoom conditions
4 participants