Fix media spoiler design (#6507)
- 4px rounded corners on media attachments - Better colors/contrast for CW/media spoiler on public pages - Fix vertical alignment of "Show more" button - Fix layout jump when unhiding standalone media
This commit is contained in:
parent
bb26cdda24
commit
cbb69d41f6
3 changed files with 24 additions and 22 deletions
|
@ -227,12 +227,8 @@ export default class MediaGallery extends React.PureComponent {
|
|||
const style = {};
|
||||
|
||||
if (this.isStandaloneEligible()) {
|
||||
if (!visible && width) {
|
||||
// only need to forcibly set the height in "sensitive" mode
|
||||
if (width) {
|
||||
style.height = width / this.props.media.getIn([0, 'meta', 'small', 'aspect']);
|
||||
} else {
|
||||
// layout automatically, using image's natural aspect ratio
|
||||
style.height = '';
|
||||
}
|
||||
} else {
|
||||
// crop the image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue