From 1f61176f305a0226cfe928298cb5a30c03c5f3e4 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Tue, 22 Jun 2021 22:47:21 +0800
Subject: fix: Fix timeline card zindex problem.

---
 FrontEnd/src/views/common/Card.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'FrontEnd/src/views/common/Card.tsx')

diff --git a/FrontEnd/src/views/common/Card.tsx b/FrontEnd/src/views/common/Card.tsx
index da2a1b68..7e2eb575 100644
--- a/FrontEnd/src/views/common/Card.tsx
+++ b/FrontEnd/src/views/common/Card.tsx
@@ -7,11 +7,16 @@ function _Card(
   {
     className,
     children,
+    ...otherProps
   }: React.PropsWithChildren<React.HTMLAttributes<HTMLDivElement>>,
   ref: React.ForwardedRef<HTMLDivElement>
 ): React.ReactElement | null {
   return (
-    <div ref={ref} className={classNames("cru-card", className)}>
+    <div
+      ref={ref}
+      className={classNames("cru-card", className)}
+      {...otherProps}
+    >
       {children}
     </div>
   );
-- 
cgit v1.2.3

