diff options
author | crupest <crupest@outlook.com> | 2021-02-13 21:55:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-13 21:55:47 +0800 |
commit | c7a3813b8c64152e91fdd0f99e8f0baf0fef4678 (patch) | |
tree | d73f7a3e95bbd918ddbf1602fb1b429bb7d6d9cf /FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx | |
parent | a39b1d690632f336ac5d73186200e393ff241ac0 (diff) | |
download | timeline-c7a3813b8c64152e91fdd0f99e8f0baf0fef4678.tar.gz timeline-c7a3813b8c64152e91fdd0f99e8f0baf0fef4678.tar.bz2 timeline-c7a3813b8c64152e91fdd0f99e8f0baf0fef4678.zip |
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx index 69954040..67871c48 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx @@ -1,5 +1,6 @@ import React from "react"; import { Spinner } from "react-bootstrap"; +import clsx from "clsx"; import { HttpNetworkError } from "@/http/common"; import { getHttpTimelineClient, HttpTimelinePostInfo } from "@/http/timeline"; @@ -38,7 +39,7 @@ const TextView: React.FC<TimelinePostContentViewProps> = (props) => { return () => { subscribe = false; }; - }, [post]); + }, [post.timelineName, post.id]); if (error != null) { // TODO: i18n @@ -69,7 +70,7 @@ const ImageView: React.FC<TimelinePostContentViewProps> = (props) => { post.timelineName, post.id )} - className={className} + className={clsx(className, "timeline-content-image")} style={style} /> ); |