Skip to content

Commit

Permalink
fix: selector performance for RTL stat
Browse files Browse the repository at this point in the history
* Rewrite selector causing performance issues

* fix selector

---------

Co-authored-by: Pouya Saadeghi <pouya.saadeghi@gmail.com>
  • Loading branch information
Frohus and saadeghi authored Oct 4, 2024
1 parent d7ab085 commit ad6f291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/styled/stat.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:where(.stats) {
@apply divide-x divide-y-0 overflow-x-auto;
}
:is([dir="rtl"] .stats > :not([hidden]) ~ :not([hidden])) {
[dir="rtl"] .stats > *:not([hidden]) ~ *:not([hidden]) {
--tw-divide-x-reverse: 1;
}
.stat {
Expand Down

0 comments on commit ad6f291

Please sign in to comment.