mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-09-23 10:21:11 +00:00
Change size of thumbnails in popup
Change-Id: I98ecea9d240a4400cf2277b3b393c4b024fe907f
This commit is contained in:
parent
cde2c2f182
commit
e9ad2ef798
|
@ -64,9 +64,7 @@
|
|||
$thumbnail = $( '<img>' )
|
||||
.attr( 'src', thumbnail.source )
|
||||
.removeClass( 'mwe-popups-is-tall mwe-popups-is-not-tall' )
|
||||
.addClass( tall ? 'mwe-popups-is-tall' : 'mwe-popups-is-not-tall' )
|
||||
.attr( 'width', thumbnail.width )
|
||||
.attr( 'height', thumbnail.height );
|
||||
.addClass( tall ? 'mwe-popups-is-tall' : 'mwe-popups-is-not-tall' );
|
||||
} else {
|
||||
$thumbnail = $( '<span>' );
|
||||
}
|
||||
|
@ -99,8 +97,7 @@
|
|||
.addClass( bar.tall ? 'mwe-popups-is-tall' : 'mwe-popups-is-not-tall' )
|
||||
.css({
|
||||
top: offsetTop,
|
||||
left: offsetLeft,
|
||||
minHeight: bar.tall ? bar.thumbnail.height : 'initial'
|
||||
left: offsetLeft
|
||||
})
|
||||
.append( bar.box )
|
||||
.show()
|
||||
|
|
|
@ -36,10 +36,12 @@
|
|||
|
||||
> img.mwe-popups-is-tall{
|
||||
float: right;
|
||||
height: 250px;
|
||||
padding-left: 1.28em;
|
||||
}
|
||||
|
||||
> img.mwe-popups-is-not-tall{
|
||||
width: 300px;
|
||||
float: initial;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue