Skip to content

Commit 665d52f

Browse files
committed
fix: apply flip to parent of svg
avoids conflicting transitions
1 parent 680e3ef commit 665d52f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Homepage/useHome.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ export const useHome = () => {
146146
{
147147
label: t("page-index:page-index-popular-topics-whitepaper"),
148148
Svg: Whitepaper,
149-
className: cn(isRtl && "[&_svg]:-scale-x-100"),
149+
className: cn(isRtl && "[&_div_div:has(svg)]:-scale-x-100"),
150150
href: "/whitepaper/",
151151
eventName: "whitepaper",
152152
},
153153
{
154154
label: t("page-index:page-index-popular-topics-roadmap"),
155155
Svg: RoadmapSign,
156-
className: cn(isRtl && "[&_svg]:-scale-x-100"),
156+
className: cn(isRtl && "[&_div_div:has(svg)]:-scale-x-100 "),
157157
href: "/roadmap/",
158158
eventName: "roadmap",
159159
},

0 commit comments

Comments
 (0)