diff options
author | crupest <crupest@outlook.com> | 2021-04-04 14:52:24 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-04 14:52:24 +0800 |
commit | b7783289bd819cc078cb996fcdb1ca6fdee5d484 (patch) | |
tree | 0d39d45a6639f49bb6745096ddc4659911b4e663 | |
parent | 83678709f32c8f7e0e83efd93e4a493d1154bd6e (diff) | |
download | timeline-b7783289bd819cc078cb996fcdb1ca6fdee5d484.tar.gz timeline-b7783289bd819cc078cb996fcdb1ca6fdee5d484.tar.bz2 timeline-b7783289bd819cc078cb996fcdb1ca6fdee5d484.zip |
fix: Fix card zindex problem.
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelinePageCardTemplate.tsx | 5 | ||||
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/timeline-common.sass | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageCardTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageCardTemplate.tsx index 6069d54e..56783e89 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePageCardTemplate.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePageCardTemplate.tsx @@ -108,7 +108,10 @@ const TimelinePageCardTemplate: React.FC<TimelineCardTemplateProps> = ({ return ( <> - <div className={clsx("cru-card p-2 clearfix", className)}> + <div + className={clsx("cru-card p-2 clearfix", className)} + style={{ zIndex: collapse ? 1029 : 1031 }} + > <div className="float-right d-flex align-items-center"> <CollapseButton collapse={collapse} onClick={toggleCollapse} /> </div> diff --git a/FrontEnd/src/app/views/timeline-common/timeline-common.sass b/FrontEnd/src/app/views/timeline-common/timeline-common.sass index 0d172327..6d5e63b1 100644 --- a/FrontEnd/src/app/views/timeline-common/timeline-common.sass +++ b/FrontEnd/src/app/views/timeline-common/timeline-common.sass @@ -166,7 +166,6 @@ $timeline-line-color-current: #36c2e6 .timeline-template-card position: fixed - z-index: 1031 top: 56px right: 0 margin: 0.5em |