FollowRecommendations: fix transparent background

This commit is contained in:
Alex Gleason 2021-10-08 11:59:59 -05:00
parent b47e7a3197
commit 4e18d7e505
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 7 additions and 2 deletions

View File

@ -96,10 +96,11 @@ class HomeTimeline extends React.PureComponent {
render() { render() {
const { intl, siteTitle, isLoading, isEmpty, features } = this.props; const { intl, siteTitle, isLoading, isEmpty, features } = this.props;
const { done } = this.state; const { done } = this.state;
const showSuggestions = features.suggestions && isEmpty && !isLoading && !done;
return ( return (
<Column label={intl.formatMessage(messages.title)} transparent> <Column label={intl.formatMessage(messages.title)} transparent={!showSuggestions}>
{(features.suggestions && isEmpty && !isLoading && !done) ? ( {showSuggestions ? (
<BundleContainer fetchComponent={FollowRecommendationsContainer}> <BundleContainer fetchComponent={FollowRecommendationsContainer}>
{Component => <Component onDone={this.handleDone} />} {Component => <Component onDone={this.handleDone} />}
</BundleContainer> </BundleContainer>

View File

@ -858,6 +858,10 @@
.column-list { .column-list {
position: relative; position: relative;
&__empty-message {
padding: 0 20px;
}
} }
.column-loading { .column-loading {