Skip to content

Commit db24782

Browse files
committed
fix: scale NavBar properly using tailwind
1 parent f3b7df3 commit db24782

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

web/src/layout/Header/navbar/index.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from "react";
2-
import styled from "styled-components";
32
import { useToggle } from "react-use";
43
import { useAccount } from "wagmi";
54
import { useLockOverlayScroll } from "hooks/useLockOverlayScroll";
@@ -39,12 +38,9 @@ const NavBar: React.FC = () => {
3938
return (
4039
<>
4140
<div
42-
className={
43-
"absolute top-16 left-0 right-0 max-h-[calc(100vh-64px)] overflow-y-auto z-1 bg-klerosUIComponentsWhiteBackground shadow-default p-6 [&_hr]:my-6 " +
44-
`origin-top transform-${isOpen ? "scaleY(1)" : "scaleY(0)"} visibility-${
45-
isOpen ? "visible" : "hidden"
46-
} transition-[transform,visibility] duration-[klerosUIComponentsTransitionSpeed] ease-in-out`
47-
}
41+
className={`absolute top-16 left-0 right-0 max-h-[calc(100vh-64px)] overflow-y-auto z-10 bg-klerosUIComponentsWhiteBackground shadow-default p-6 [&_hr]:my-6 origin-top transition-[transform,visibility] duration-[klerosUIComponentsTransitionSpeed] ease-in-out ${
42+
isOpen ? "scale-y-100 visible" : "scale-y-0 invisible"
43+
}`}
4844
>
4945
<LightButton
5046
text="Kleros Solutions"

0 commit comments

Comments
 (0)