diff options
author | crupest <crupest@outlook.com> | 2021-04-04 22:49:06 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-04 22:49:06 +0800 |
commit | fcd581f21725d7d45e401f0bc3a77db18319ee97 (patch) | |
tree | 22177214c6e4d4f20d63a8476297ea91b33efb81 /FrontEnd/src/app/views/timeline-common/TimelineLine.tsx | |
parent | f2370781ac566e3adf3b5f887bd49b8613bd874b (diff) | |
download | timeline-fcd581f21725d7d45e401f0bc3a77db18319ee97.tar.gz timeline-fcd581f21725d7d45e401f0bc3a77db18319ee97.tar.bz2 timeline-fcd581f21725d7d45e401f0bc3a77db18319ee97.zip |
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelineLine.tsx')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelineLine.tsx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelineLine.tsx b/FrontEnd/src/app/views/timeline-common/TimelineLine.tsx index 593250bd..d020f22c 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelineLine.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelineLine.tsx @@ -1,5 +1,5 @@ -import clsx from "clsx"; import React from "react"; +import clsx from "clsx"; export interface TimelineLineProps { current?: boolean; @@ -17,7 +17,15 @@ const TimelineLine: React.FC<TimelineLineProps> = ({ style, }) => { return ( - <div className={clsx("timeline-line", className)} style={style}> + <div + className={clsx( + "timeline-line", + current && "current", + center === "loading" && "loading", + className + )} + style={style} + > <div className="segment start" style={{ height: startSegmentLength }} /> {center !== "none" ? ( <div className="node-container"> |