From 1f61176f305a0226cfe928298cb5a30c03c5f3e4 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 22 Jun 2021 22:47:21 +0800 Subject: fix: Fix timeline card zindex problem. --- FrontEnd/src/views/common/Card.tsx | 7 ++++++- FrontEnd/src/views/timeline-common/index.css | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) 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>, ref: React.ForwardedRef ): React.ReactElement | null { return ( -
+
{children}
); diff --git a/FrontEnd/src/views/timeline-common/index.css b/FrontEnd/src/views/timeline-common/index.css index de35088c..8927a96f 100644 --- a/FrontEnd/src/views/timeline-common/index.css +++ b/FrontEnd/src/views/timeline-common/index.css @@ -254,7 +254,6 @@ .timeline-template-card { position: fixed; - z-index: 1031; top: 56px; right: 0; margin: 0.5em; -- cgit v1.2.3