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

Language switcher doesn't have proper margins/paddings in RTL languages #1871

Open
AzzamAlsharafi opened this issue Dec 4, 2024 · 0 comments

Comments

@AzzamAlsharafi
Copy link
Contributor

AzzamAlsharafi commented Dec 4, 2024

Describe the bug
When an RTL language is chosen, the website layout changes to RTL, however the language switcher seems to have incorrect margins/paddings when in RTL layout.

To Reproduce
Steps to reproduce the behavior:

  1. Create a site with RTL language
  2. Switch to the RTL language
  3. See error (Language switcher)

Expected behavior
The margins/paddings should be the same in RTL as they are in LTR, just in reverse direction.

Screenshots
Proper layout in LTR languages:
image

Broken layout in RTL languages:
image

Desktop:

  • OS: Fedora
  • Browser Edge
  • Version 131

Hugo & Blowfish versions
Hugo: v0.139.3
Blowfish: v2.80.0

Additional context
It seems the problem is half-fixed in mobile layout, where the missing margin/padding is only in one side, unlike desktop layout which has missing margin/padding in both sides.
image

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

No branches or pull requests

1 participant