Wrong position on mobile in `RTL`
zaaakher opened this issue Β· comments
Zakher Masri commented
Describe the feature / bug π:
Extra space on the left when direction is RTL
and screen size is less than 600px
Steps to reproduce the bug π:
- Make the sonner RTL by setting
dir="rtl"
in theToaster
component
<Toaster dir="rtl" />
- View the site on mobile
- You'll see the extra space like the screenshot below:
I temporarily fixed it by setting the following tailwind classname start-[32px]
And that 32 pixel is basically equivalnt to
calc(var(--mobile-offset) * 2)
I have a feeling the problem can be traced back to the following code;
Lines 351 to 358 in a2bbec0
We might have to add a case for RTL. I will try to work on a PR to fix it