[Glitch] Add empty state message for follow recommendations in web UI
Port 8d75bd002da5011237b537b522a5b6248e99b9d5 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
		
							parent
							
								
									56135a77f9
								
							
						
					
					
						commit
						b571bc3278
					
				@ -75,10 +75,14 @@ class FollowRecommendations extends ImmutablePureComponent {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
          {!isLoading && (
 | 
					          {!isLoading && (
 | 
				
			||||||
            <React.Fragment>
 | 
					            <React.Fragment>
 | 
				
			||||||
              <div>
 | 
					              <div className='column-list'>
 | 
				
			||||||
                {suggestions.map(suggestion => (
 | 
					                {suggestions.size > 0 ? suggestions.map(suggestion => (
 | 
				
			||||||
                  <Account key={suggestion.get('account')} id={suggestion.get('account')} />
 | 
					                  <Account key={suggestion.get('account')} id={suggestion.get('account')} />
 | 
				
			||||||
                ))}
 | 
					                )) : (
 | 
				
			||||||
 | 
					                  <div className='column-list__empty-message'>
 | 
				
			||||||
 | 
					                    <FormattedMessage id='empty_column.follow_recommendations' defaultMessage='Looks like no suggestions could be generated for you. You can try using search to look for people you might know or explore trending hashtags.' />
 | 
				
			||||||
 | 
					                  </div>
 | 
				
			||||||
 | 
					                )}
 | 
				
			||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              <div className='column-actions'>
 | 
					              <div className='column-actions'>
 | 
				
			||||||
 | 
				
			|||||||
@ -839,3 +839,19 @@
 | 
				
			|||||||
    width: auto;
 | 
					    width: auto;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.column-list {
 | 
				
			||||||
 | 
					  margin: 0 20px;
 | 
				
			||||||
 | 
					  border: 1px solid lighten($ui-base-color, 8%);
 | 
				
			||||||
 | 
					  background: darken($ui-base-color, 2%);
 | 
				
			||||||
 | 
					  border-radius: 4px;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  &__empty-message {
 | 
				
			||||||
 | 
					    padding: 40px;
 | 
				
			||||||
 | 
					    text-align: center;
 | 
				
			||||||
 | 
					    font-size: 16px;
 | 
				
			||||||
 | 
					    line-height: 24px;
 | 
				
			||||||
 | 
					    font-weight: 400;
 | 
				
			||||||
 | 
					    color: $darker-text-color;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user