Browse Source

fix(components/media_modal): Aspect ratio (#4128)

* fix(components/media_modal): Aspect ratio

* fix: Remove useless style
closed-social-v3
Sorin Davidoi 7 years ago
committed by Eugen Rochko
parent
commit
4122a837fa
3 changed files with 3 additions and 1 deletions
  1. +1
    -0
      app/javascript/mastodon/features/ui/components/image_loader.js
  2. +1
    -1
      app/javascript/mastodon/features/ui/components/media_modal.js
  3. +1
    -0
      app/javascript/styles/components.scss

+ 1
- 0
app/javascript/mastodon/features/ui/components/image_loader.js View File

@ -133,6 +133,7 @@ export default class ImageLoader extends React.PureComponent {
width={width}
height={height}
ref={this.setCanvasRef}
style={{ opacity: loading ? 1 : 0 }}
/>
{!loading && (

+ 1
- 1
app/javascript/mastodon/features/ui/components/media_modal.js View File

@ -94,7 +94,7 @@ export default class MediaModal extends ImmutablePureComponent {
<div className='media-modal__content'>
<IconButton className='media-modal__close' title={intl.formatMessage(messages.close)} icon='times' onClick={onClose} size={16} />
<ReactSwipeableViews onChangeIndex={this.handleSwipe} index={index}>
<ReactSwipeableViews onChangeIndex={this.handleSwipe} index={index} animateHeight>
{content}
</ReactSwipeableViews>
</div>

+ 1
- 0
app/javascript/styles/components.scss View File

@ -2935,6 +2935,7 @@ button.icon-button.active i.fa-retweet {
canvas {
display: block;
background: url('../images/void.png') repeat;
object-fit: contain;
}
}

Loading…
Cancel
Save