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.
Relevant issue: #1871
Current
In RTL languages, the layout of the top nav bar is slightly broken:
In desktop mode, there's no gap between EN and the languages logo, and there's no gap between Shortcodes and Docs tabs
In mobile mode, there's no gap between EN and the languages logo.
Solution
The issue is mainly caused by two things:
mr-X
orml-X
in some places, which places the margin in the wrong direction when switched to RTL layout. This is solved by making use ofrtl:
andltr:
specifiers. Somr-1
is changed toltr:mr-1 rtl:ml-1
space-x-X
in some places, which doesn't work well with RTL layouts. This is solved by replacingspace-x-X
withgap-x-X
.Post-fix
Desktop mode.
Mobile mode.