Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Conversation

TylerAPfledderer
Copy link
Collaborator

@TylerAPfledderer TylerAPfledderer commented Apr 3, 2022

📝 Description

overflowX: auto and whiteSpace: pre are applied to the LiveCodePreview component to constrain the live code examples within the preview container, allow for horizontal scroll, and preserve the intended white space from the example.

⛳️ Current behavior (updates)

Some current live previews are overflowing the preview container when viewed in a mobile device, breaking the page layout.

🚀 New behavior

Hide the overflow and allow for horizontal scrolling with overflowX: auto applied to the LiveCodePreview component.

Also apply whiteSpace: pre to preserve white space of any text content and prevent the text from getting compressed, depending on the created code example.

💣 Is this a breaking change (Yes/No):

No

📝 Additional Information

This PR provides a simpler, more global, and less confusing fix than PR #488.

@vercel
Copy link

vercel bot commented Apr 3, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/chakra-ui/chakra-ui-docs/BfotJmEiRHrs3Y4xM3mGbaZGV1yz
✅ Preview: https://chakra-ui-docs-git-fork-tylerapfledderer-fix-r-8c9232-chakra-ui.vercel.app

@TylerAPfledderer
Copy link
Collaborator Author

@nikolovlazar this is good to go for review!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants