camya / filament-title-with-slug

"Title With Slug" Input - Easy Permalink Slugs for Filament Forms (PHP / Laravel / Livewire)
MIT License
123 stars 39 forks source link

Slug url breaks in RTL layouts #12

Open movaziri opened 1 year ago

movaziri commented 1 year ago

When you're using the input field in a right to left website, the slug part breaks, both the preview and the edit:

Screen Shot 2023-01-04 at 14 41 10 Screen Shot 2023-01-04 at 14 43 10

We can keep using LTR explicitly for this section.

camya commented 1 year ago

Hi, I really like to fix this for right to left websites. Unfortunately I can't simulate rtl this on my dev-environment.

Maybe you have an idea how to make it work both left-to-right (ltr) and right-to-left (rtl)?

movaziri commented 1 year ago

It's more of a design choice than a technical issue. I think just put a dir="ltr" on the main div, cause URLs are supposed to be read from left to right anyway.

hassan-hasson commented 11 months ago

Hi, I really like to fix this for right to left websites. Unfortunately I can't simulate rtl this on my dev-environment.

Maybe you have an idea how to make it work both left-to-right (ltr) and right-to-left (rtl)?

you can use https://filamentphp.com/plugins/bezhansalleh-language-switch and switch to arabic for rtl and english for ltr