aviflombaum / shadcn-rails

https://shadcn.rails-components.com
MIT License
476 stars 32 forks source link

Fix sheet misaligned from right on documentation #10

Closed condef5 closed 11 months ago

condef5 commented 11 months ago

As we are utilizing dynamic classes in the sheet component: (<%= options[:direction] %>-0)

The class right-0 is not recognized by the Tailwind CSS purge process.

To address this issue, I use a constant in direction_class method to encapsulate the direction class names (left-0 and right-0). This approach offers several advantages for future scenarios, especially when we aim to extend support for top and bottom positions.

aviflombaum commented 11 months ago

OMG some good