Skip to content

Commit

Permalink
Sets overflow to hidden to eliminate overlap of logs when expanding. (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
natalyjazzviolin authored and robbinhan committed Sep 29, 2022
1 parent 6f2f8dd commit a6e0e75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.container {
overflow: hidden;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { motion } from "framer-motion";
import React from "react";

import styles from "./ContentWrapper.module.scss";

interface IProps {
children?: React.ReactNode;
isOpen?: boolean;
Expand All @@ -10,6 +12,7 @@ interface IProps {
const ContentWrapper: React.FC<IProps> = ({ children, isOpen, onToggled }) => {
return (
<motion.div
className={styles.container}
animate={!isOpen ? "closed" : "open"}
onAnimationComplete={onToggled}
variants={{
Expand Down

0 comments on commit a6e0e75

Please sign in to comment.