From 7ec5cf66cef88bc7d3b8720070f40cceb452aec4 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Wed, 10 Jun 2020 15:21:32 +0800
Subject: feat(front): Fix #75 .

---
 Timeline/ClientApp/src/timeline/TimelineItem.tsx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'Timeline/ClientApp/src/timeline/TimelineItem.tsx')

diff --git a/Timeline/ClientApp/src/timeline/TimelineItem.tsx b/Timeline/ClientApp/src/timeline/TimelineItem.tsx
index 215c7b12..9e08acc7 100644
--- a/Timeline/ClientApp/src/timeline/TimelineItem.tsx
+++ b/Timeline/ClientApp/src/timeline/TimelineItem.tsx
@@ -56,6 +56,8 @@ export interface TimelineItemProps {
   onClick?: () => void;
   avatarVersion?: number;
   onResize?: () => void;
+  className?: string;
+  style?: React.CSSProperties;
 }
 
 const TimelineItem: React.FC<TimelineItemProps> = (props) => {
@@ -78,8 +80,13 @@ const TimelineItem: React.FC<TimelineItemProps> = (props) => {
 
   return (
     <Row
-      className={clsx('position-relative flex-nowrap', current && 'current')}
+      className={clsx(
+        'position-relative flex-nowrap',
+        current && 'current',
+        props.className
+      )}
       onClick={props.onClick}
+      style={props.style}
     >
       <Col className="timeline-line-area">
         <div className="timeline-line-segment start"></div>
-- 
cgit v1.2.3

