这是indexloc提供的服务,不要输入任何密码
Skip to content

fix(docs): overflow on  <Callout /> #2082

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

Merged
merged 5 commits into from
Sep 27, 2022

Conversation

QuiiBz
Copy link
Member

@QuiiBz QuiiBz commented Sep 26, 2022

When the content of <Callout /> contains long elements considered as a single word (e.g inline code), it causes an overflow on the page, and we can zoom out / swipe to the right:

Screenshot 2022-09-26 at 15 49 32

This PR adds an overflow-x: scroll; to the container, which allows scrolling to the right similarly to code blocks:

Screen.Recording.2022-09-26.at.15.49.53.mov

Another option is to break words, but I'm not sure if it's a better idea. The content is longer and breaks long words, such as inline code:

Screenshot 2022-09-26 at 15 50 45

@QuiiBz QuiiBz requested a review from a team as a code owner September 26, 2022 13:54
@vercel
Copy link

vercel bot commented Sep 26, 2022

@QuiiBz is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@tknickman
Copy link
Member

Personally I prefer the word break option

@QuiiBz
Copy link
Member Author

QuiiBz commented Sep 26, 2022

Personally I prefer the word break option

Should we wait for someone else’s opinion, or go directly with word break?

@gsoltis gsoltis requested review from mattpocock and removed request for gsoltis and NicholasLYang September 26, 2022 23:28
@mattpocock
Copy link
Contributor

@tknickman @QuiiBz Agree, word break looks better

@QuiiBz
Copy link
Member Author

QuiiBz commented Sep 27, 2022

@tknickman @QuiiBz Agree, word break looks better

Updated!

@tknickman
Copy link
Member

Thanks @mattpocock / @QuiiBz

@vercel
Copy link

vercel bot commented Sep 27, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
turbo-site ✅ Ready (Inspect) Visit Preview Sep 27, 2022 at 1:47PM (UTC)

@tknickman tknickman added the pr: automerge Kodiak will merge these automatically after checks pass label Sep 27, 2022
@tknickman tknickman merged commit 5ac1a0c into vercel:main Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: automerge Kodiak will merge these automatically after checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants