@@ -11,16 +11,16 @@ import TimeAgo from 'timeago-react'
1111
1212import { connectStore , buildLog } from '@utils'
1313
14+ import FavoritesCats from '@containers/FavoritesCats'
1415import DotDivider from '@components/DotDivider'
1516import Maybe from '@components/Maybe'
1617import { Space } from '@components/BaseStyled'
17- import FavoritesCats from '../FavoritesCats'
1818
1919import Title from './Title'
2020import ReactionNumbers from './ReactionNumbers'
2121import MiddleInfo from './MiddleInfo'
2222
23- import { Wrapper , BannerContent , Brief , Desc } from './styles'
23+ import { Wrapper , InnerWrapper , BannerContent , Brief , Desc } from './styles'
2424import { useInit } from './logic'
2525
2626/* eslint-disable-next-line */
@@ -45,41 +45,43 @@ const ArticleBannerContainer = ({
4545 < Wrapper >
4646 < FavoritesCats />
4747 { ! R . isNil ( viewingData . id ) && (
48- < BannerContent >
49- < Brief >
50- < Title thread = { activeThread } data = { viewingData } />
51- < MiddleInfo thread = { activeThread } data = { viewingData } />
52- < Desc >
53- 发布于:
54- < Space left = "3px" right = "3px" />
55- < TimeAgo datetime = { viewingData . insertedAt } locale = "zh_CN" />
56- < Maybe test = { showWordCount } >
57- < React . Fragment >
58- < DotDivider />
59- 字数: { viewingData . length }
60- </ React . Fragment >
61- </ Maybe >
62- < Maybe test = { showLastSync } >
63- < React . Fragment >
64- < DotDivider />
65- 最后同步:
66- < Space left = "3px" right = "3px" />
67- { viewingData . lastSync ? (
68- < TimeAgo datetime = { viewingData . lastSync } locale = "zh_CN" />
69- ) : (
70- < span > --</ span >
71- ) }
72- </ React . Fragment >
73- </ Maybe >
74- </ Desc >
75- </ Brief >
76- < ReactionNumbers
77- data = { viewingData }
78- starLoading = { starLoading }
79- favoriteLoading = { favoriteLoading }
80- showStar = { showStar }
81- />
82- </ BannerContent >
48+ < InnerWrapper >
49+ < BannerContent >
50+ < Brief >
51+ < Title thread = { activeThread } data = { viewingData } />
52+ < MiddleInfo thread = { activeThread } data = { viewingData } />
53+ < Desc >
54+ 发布于:
55+ < Space left = "3px" right = "3px" />
56+ < TimeAgo datetime = { viewingData . insertedAt } locale = "zh_CN" />
57+ < Maybe test = { showWordCount } >
58+ < React . Fragment >
59+ < DotDivider />
60+ 字数: { viewingData . length }
61+ </ React . Fragment >
62+ </ Maybe >
63+ < Maybe test = { showLastSync } >
64+ < React . Fragment >
65+ < DotDivider />
66+ 最后同步:
67+ < Space left = "3px" right = "3px" />
68+ { viewingData . lastSync ? (
69+ < TimeAgo datetime = { viewingData . lastSync } locale = "zh_CN" />
70+ ) : (
71+ < span > --</ span >
72+ ) }
73+ </ React . Fragment >
74+ </ Maybe >
75+ </ Desc >
76+ </ Brief >
77+ < ReactionNumbers
78+ data = { viewingData }
79+ starLoading = { starLoading }
80+ favoriteLoading = { favoriteLoading }
81+ showStar = { showStar }
82+ />
83+ </ BannerContent >
84+ </ InnerWrapper >
8385 ) }
8486 </ Wrapper >
8587 )
0 commit comments