bndw / wifi-card

📶 Print a QR code for connecting to your WiFi (wificard.io)
https://wificard.io
MIT License
6.62k stars 465 forks source link

🐛 Logo + icons spacings are broken for rtl languages #203

Closed a-tokyo closed 3 years ago

a-tokyo commented 3 years ago

Description:

– Since the wifi logo has a hardcoded paddingLeft, it's not behaving nicely with RTL languages.

Proposed solution:

– Instead of setting paddingLeft check for html.direction and set paddingRight if rtl or paddingLeft otherwise.

PR with fixes: https://github.com/bndw/wifi-card/pull/202