aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-15 21:38:54 +0800
committercrupest <crupest@outlook.com>2021-06-15 21:38:54 +0800
commitc94784c9693648c2376d1aeaeae379ddc0036a32 (patch)
tree32267afa6c3a3ec1ba4526c9093b1e994e428fe8 /FrontEnd
parent0c0ef55d1a98d5559cf3ec8665130596d26b2160 (diff)
downloadtimeline-c94784c9693648c2376d1aeaeae379ddc0036a32.tar.gz
timeline-c94784c9693648c2376d1aeaeae379ddc0036a32.tar.bz2
timeline-c94784c9693648c2376d1aeaeae379ddc0036a32.zip
...
Diffstat (limited to 'FrontEnd')
-rw-r--r--FrontEnd/src/views/timeline-common/Timeline.tsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/FrontEnd/src/views/timeline-common/Timeline.tsx b/FrontEnd/src/views/timeline-common/Timeline.tsx
index 90eba18f..c632badc 100644
--- a/FrontEnd/src/views/timeline-common/Timeline.tsx
+++ b/FrontEnd/src/views/timeline-common/Timeline.tsx
@@ -149,8 +149,16 @@ const Timeline: React.FC<TimelineProps> = (props) => {
posts={posts}
onReload={onReload.current}
/>
- {timeline?.postable && (
+ {timeline?.postable ? (
<TimelinePostEdit timeline={timeline} onPosted={onReload.current} />
+ ) : (
+ <TimelineTop
+ lineProps={{
+ startSegmentLength: 20,
+ center: "none",
+ current: true,
+ }}
+ />
)}
</>
);