Fix dimensions of preview cards, fix crash in web UI, fix warning (#9133)
This commit is contained in:
		
					parent
					
						
							
								26fe37c414
							
						
					
				
			
			
				commit
				
					
						9c38c5daa3
					
				
			
		
					 8 changed files with 8 additions and 86 deletions
				
			
		|  | @ -8,7 +8,7 @@ import MediaGallery from '../../../components/media_gallery'; | |||
| import AttachmentList from '../../../components/attachment_list'; | ||||
| import { Link } from 'react-router-dom'; | ||||
| import { FormattedDate, FormattedNumber } from 'react-intl'; | ||||
| import CardContainer from '../containers/card_container'; | ||||
| import Card from './card'; | ||||
| import ImmutablePureComponent from 'react-immutable-pure-component'; | ||||
| import Video from '../../video'; | ||||
| 
 | ||||
|  | @ -80,7 +80,7 @@ export default class DetailedStatus extends ImmutablePureComponent { | |||
|         ); | ||||
|       } | ||||
|     } else if (status.get('spoiler_text').length === 0) { | ||||
|       media = <CardContainer onOpenMedia={this.props.onOpenMedia} statusId={status.get('id')} />; | ||||
|       media = <Card onOpenMedia={this.props.onOpenMedia} card={status.get('card', null)} />; | ||||
|     } | ||||
| 
 | ||||
|     if (status.get('application')) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue