diff options
author | crupest <crupest@outlook.com> | 2021-06-22 22:47:21 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-22 22:47:21 +0800 |
commit | 1f61176f305a0226cfe928298cb5a30c03c5f3e4 (patch) | |
tree | e01e9f65ff73254430de15801d8f320f68e1d6dc /FrontEnd/src | |
parent | f3e53af1f7e6a78a302a2a5f88ab3e898e92eac6 (diff) | |
download | timeline-1f61176f305a0226cfe928298cb5a30c03c5f3e4.tar.gz timeline-1f61176f305a0226cfe928298cb5a30c03c5f3e4.tar.bz2 timeline-1f61176f305a0226cfe928298cb5a30c03c5f3e4.zip |
fix: Fix timeline card zindex problem.
Diffstat (limited to 'FrontEnd/src')
-rw-r--r-- | FrontEnd/src/views/common/Card.tsx | 7 | ||||
-rw-r--r-- | 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<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> ); 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; |