Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Fix background-size being overwritten (mastodon#2382)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts authored and Gargron committed Apr 24, 2017
1 parent 3d3707a commit 72c984e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Item extends React.PureComponent {
href={attachment.get('remote_url') || attachment.get('url')}
onClick={this.handleClick}
target='_blank'
style={{ background: `url(${attachment.get('preview_url')}) no-repeat center`}}
style={{ backgroundImage: `url(${attachment.get('preview_url')})` }}
/>
);
} else if (attachment.get('type') === 'gifv') {
Expand Down
2 changes: 2 additions & 0 deletions app/assets/stylesheets/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2999,6 +2999,8 @@ button.icon-button.active i.fa-retweet {
}

.media-gallery__item-thumbnail {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
cursor: zoom-in;
display: block;
Expand Down

0 comments on commit 72c984e

Please sign in to comment.