This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export const LogoWrapper = styled.div`
3636 margin-top: ${ ( { raw } ) => ( raw === 'home' ? '-14px' : 0 ) } ;
3737 @media (max-height: 800px) {
3838 width: 50px;
39+ margin-top: ${ ( { raw } ) => ( raw === 'home' ? '-8px' : 0 ) } ;
3940 }
4041`
4142export const CommunityLogo = styled ( Img ) `
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ import {
1313 THREAD ,
1414 $solver ,
1515 scrollIntoEle ,
16- // closePreviewer,
17- // GA,
1816} from '../../utils'
1917
2018import S from './schema'
@@ -36,7 +34,12 @@ let store = null
3634let sub$ = null
3735
3836// TODO: move to utils
39- const validFilter = R . pickBy ( R . compose ( R . not , R . isEmpty ) )
37+ const validFilter = R . pickBy (
38+ R . compose (
39+ R . not ,
40+ R . isEmpty
41+ )
42+ )
4043
4144export const inAnchor = ( ) => store . setHeaderFix ( false )
4245export const outAnchor = ( ) => store . setHeaderFix ( true )
@@ -184,7 +187,7 @@ const ErrSolver = [
184187
185188export function init ( _store ) {
186189 debug ( '======== init' )
187- // closePreviewer()
190+
188191 store = _store
189192 if ( sub$ ) return false // sub$.unsubscribe()
190193 sub$ = sr71$ . data ( ) . subscribe ( $solver ( DataSolver , ErrSolver ) )
Original file line number Diff line number Diff line change @@ -131,7 +131,15 @@ export default class PageCommunity extends React.Component {
131131 isValidSession : sessionState . isValid ,
132132 userSubscribedCommunities : subscribedCommunities ,
133133 } ,
134- viewing : { community, activeThread : R . toLower ( thread ) , post : { } } ,
134+ viewing : {
135+ community,
136+ activeThread : R . toLower ( thread ) ,
137+ post : { } ,
138+ job : { } ,
139+ video : { } ,
140+ repo : { } ,
141+ user : { } ,
142+ } ,
135143 route : { mainPath : community . raw , subPath } ,
136144 tagsBar : { tags : partialTags } ,
137145 } ,
You can’t perform that action at this time.
0 commit comments