aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-22 22:47:21 +0800
committercrupest <crupest@outlook.com>2021-06-22 22:47:21 +0800
commit1f61176f305a0226cfe928298cb5a30c03c5f3e4 (patch)
treee01e9f65ff73254430de15801d8f320f68e1d6dc /FrontEnd/src/views/common
parentf3e53af1f7e6a78a302a2a5f88ab3e898e92eac6 (diff)
downloadtimeline-1f61176f305a0226cfe928298cb5a30c03c5f3e4.tar.gz
timeline-1f61176f305a0226cfe928298cb5a30c03c5f3e4.tar.bz2
timeline-1f61176f305a0226cfe928298cb5a30c03c5f3e4.zip
fix: Fix timeline card zindex problem.
Diffstat (limited to 'FrontEnd/src/views/common')
-rw-r--r--FrontEnd/src/views/common/Card.tsx7
1 files changed, 6 insertions, 1 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>
);