From da9041846e4903a330dd8e4f8ec92570775ff313 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sun, 4 Apr 2021 23:50:25 +0800
Subject: ...

---
 FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx')

diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx
index 3d075f0e..4cafdaa0 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx
@@ -16,11 +16,12 @@ export interface TimelinePostViewProps {
   current?: boolean;
   className?: string;
   style?: React.CSSProperties;
+  cardStyle?: React.CSSProperties;
   onDeleted?: () => void;
 }
 
 const TimelinePostView: React.FC<TimelinePostViewProps> = (props) => {
-  const { post, className, style, onDeleted } = props;
+  const { post, className, style, cardStyle, onDeleted } = props;
   const current = props.current === true;
 
   const [
@@ -36,7 +37,7 @@ const TimelinePostView: React.FC<TimelinePostViewProps> = (props) => {
       style={style}
     >
       <TimelineLine center="node" current={current} />
-      <div className="timeline-item-card">
+      <div className="timeline-item-card" style={cardStyle}>
         {post.editable ? (
           <i
             className="bi-chevron-down text-info icon-button float-right"
-- 
cgit v1.2.3

