Mostly fix FireFox scrolling issues (hopefully), fixes #372

better-thread-display
Alex Gleason 2020-08-30 18:38:50 -05:00
rodzic 68677e3692
commit 35c3aaa9d8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -192,15 +192,15 @@ class Status extends ImmutablePureComponent {
}; };
renderLoadingMediaGallery() { renderLoadingMediaGallery() {
return <div className='media_gallery' style={{ height: '110px' }} />; return <div className='media_gallery' style={{ height: '285px' }} />;
} }
renderLoadingVideoPlayer() { renderLoadingVideoPlayer() {
return <div className='media-spoiler-video' style={{ height: '110px' }} />; return <div className='media-spoiler-video' style={{ height: '285px' }} />;
} }
renderLoadingAudioPlayer() { renderLoadingAudioPlayer() {
return <div className='media-spoiler-audio' style={{ height: '110px' }} />; return <div className='media-spoiler-audio' style={{ height: '285px' }} />;
} }
handleOpenVideo = (media, startTime) => { handleOpenVideo = (media, startTime) => {
@ -373,7 +373,7 @@ class Status extends ImmutablePureComponent {
alt={video.get('description')} alt={video.get('description')}
aspectRatio={video.getIn(['meta', 'small', 'aspect'])} aspectRatio={video.getIn(['meta', 'small', 'aspect'])}
width={this.props.cachedMediaWidth} width={this.props.cachedMediaWidth}
height={110} height={285}
inline inline
sensitive={status.get('sensitive')} sensitive={status.get('sensitive')}
onOpenVideo={this.handleOpenVideo} onOpenVideo={this.handleOpenVideo}
@ -409,7 +409,7 @@ class Status extends ImmutablePureComponent {
<Component <Component
media={status.get('media_attachments')} media={status.get('media_attachments')}
sensitive={status.get('sensitive')} sensitive={status.get('sensitive')}
height={110} height={285}
onOpenMedia={this.props.onOpenMedia} onOpenMedia={this.props.onOpenMedia}
cacheWidth={this.props.cacheMediaWidth} cacheWidth={this.props.cacheMediaWidth}
defaultWidth={this.props.cachedMediaWidth} defaultWidth={this.props.cachedMediaWidth}