Wait to scroll comments until sidebar animation is complete

Cleanup some unused code
This commit is contained in:
Tom Moor
2023-04-02 11:41:28 -04:00
parent 16a5be1aa6
commit 40103c9d8f
7 changed files with 37 additions and 29 deletions

View File

@@ -8,6 +8,7 @@ import Flex from "~/components/Flex";
import ResizeBorder from "~/components/Sidebar/components/ResizeBorder";
import useMobile from "~/hooks/useMobile";
import useStores from "~/hooks/useStores";
import { sidebarAppearDuration } from "~/styles/animations";
type Props = React.HTMLAttributes<HTMLDivElement> & {
children: React.ReactNode;
@@ -82,7 +83,7 @@ function Right({ children, border, className }: Props) {
: {
type: "spring",
bounce: 0.2,
duration: 0.6,
duration: sidebarAppearDuration / 1000,
},
width: ui.sidebarRightWidth,
}}