Fix alignment on gallery items lacking alt text
The icons now are in the lower right and they correct for their relative inset values.
This commit is contained in:
parent
357186376c
commit
3f944ee936
|
@ -171,7 +171,7 @@ class Item extends React.PureComponent {
|
|||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
>
|
||||
{ !attachment.get('description') && <IconButton className='media-gallery__item-no-description media__no-description-icon' title={this.props.noDescriptionTitle} icon='exclamation-triangle' overlay /> }
|
||||
{ !attachment.get('description') && <IconButton className='media-gallery__item-no-description media__no-description-icon' title={this.props.noDescriptionTitle} icon='exclamation-triangle' style={{ right: `calc(4px + ${(left === 'auto' ? '0px' : left)})`, bottom: `calc(4px + ${(top === 'auto' ? '0px' : top)})` }} overlay /> }
|
||||
<img
|
||||
src={previewUrl}
|
||||
srcSet={srcSet}
|
||||
|
|
|
@ -6022,8 +6022,6 @@ a.status-card.compact:hover {
|
|||
|
||||
.media-gallery__item-no-description {
|
||||
position: absolute;
|
||||
bottom: 4px;
|
||||
left: 4px;
|
||||
}
|
||||
|
||||
.media-gallery__item-thumbnail {
|
||||
|
|
Loading…
Reference in New Issue