diff options
author | crupest <crupest@outlook.com> | 2021-02-14 23:33:24 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-14 23:33:24 +0800 |
commit | fc02aab3840cea65b6fa4ec62057b8db9f0ca4a2 (patch) | |
tree | 691dcc799a8ffd19971e565dcf9ffbd0eb2a5561 /FrontEnd/src/app/views/common/Skeleton.tsx | |
parent | 3b7e48a5397aa7876e0ef0366d0125702a7fa83f (diff) | |
download | timeline-fc02aab3840cea65b6fa4ec62057b8db9f0ca4a2.tar.gz timeline-fc02aab3840cea65b6fa4ec62057b8db9f0ca4a2.tar.bz2 timeline-fc02aab3840cea65b6fa4ec62057b8db9f0ca4a2.zip |
feat: Enhance appearance of skeleton.
Diffstat (limited to 'FrontEnd/src/app/views/common/Skeleton.tsx')
-rw-r--r-- | FrontEnd/src/app/views/common/Skeleton.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FrontEnd/src/app/views/common/Skeleton.tsx b/FrontEnd/src/app/views/common/Skeleton.tsx index 6340f96f..c0c84d27 100644 --- a/FrontEnd/src/app/views/common/Skeleton.tsx +++ b/FrontEnd/src/app/views/common/Skeleton.tsx @@ -15,7 +15,10 @@ const Skeleton: React.FC<SkeletonProps> = (props) => { return ( <div className={clsx(className, "cru-skeleton")} style={style}> {range(lineNumber).map((i) => ( - <div key={i} className="cru-skeleton-line" /> + <div + key={i} + className={clsx("cru-skeleton-line", i === lineNumber - 1 && "last")} + /> ))} </div> ); |