aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/Timeline.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-04 12:01:50 +0800
committercrupest <crupest@outlook.com>2020-11-04 12:01:50 +0800
commitcdee687e1d37ca794e878ec599a74a77dd6cdf78 (patch)
tree4468cdf6c884d59d8a95702ced650bfca68aa398 /FrontEnd/src/app/views/timeline-common/Timeline.tsx
parentf7fff0c89a18cf5ed70dd5993ca7413e4d94daa4 (diff)
downloadtimeline-cdee687e1d37ca794e878ec599a74a77dd6cdf78.tar.gz
timeline-cdee687e1d37ca794e878ec599a74a77dd6cdf78.tar.bz2
timeline-cdee687e1d37ca794e878ec599a74a77dd6cdf78.zip
feat: Enhance design.
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/Timeline.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/Timeline.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/Timeline.tsx b/FrontEnd/src/app/views/timeline-common/Timeline.tsx
index 6bd1b96d..9047919c 100644
--- a/FrontEnd/src/app/views/timeline-common/Timeline.tsx
+++ b/FrontEnd/src/app/views/timeline-common/Timeline.tsx
@@ -14,6 +14,7 @@ export type TimelineDeleteCallback = (index: number, id: number) => void;
export interface TimelineProps {
className?: string;
+ style?: React.CSSProperties;
posts: TimelinePostInfoEx[];
onDelete: TimelineDeleteCallback;
onResize?: () => void;
@@ -52,7 +53,11 @@ const Timeline: React.FC<TimelineProps> = (props) => {
}, [posts, onDelete]);
return (
- <div ref={props.containerRef} className={clsx("timeline", props.className)}>
+ <div
+ ref={props.containerRef}
+ style={props.style}
+ className={clsx("timeline", props.className)}
+ >
<TimelineTop height="56px" />
{(() => {
const length = posts.length;