Fix table overflow behavior on mobile #2062
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does it do?
Updated scss for
table
element so that table overflow doesn't push screen out of bounds on mobile.Why is it needed?
UI bug that should be fixed for UX. This happens across the entire documentation sites, whenever we have
<code>
wrapped text in the tables that are too long, and pushes the table out of the viewport bounds.Changes Made
auto
<Annotations>
usage isn't affected by initial or auto (see #How to test). No existing impact since there are no current implementations of annotation component within markdown tablesScreenshots & gifs
Before Fix - iPhone 14 Pro Max Example
This was tested on an iPhone 14 plus in real life as well.
Link: https://docs.strapi.io/dev-docs/backend-customization/requests-responses
How to test
<Annotation>
to a markdown table to make sure that changes don't affect it's usageRelated issue(s)/PR(s)
-