Change size of thumbnails in popup

Change-Id: I98ecea9d240a4400cf2277b3b393c4b024fe907f
This commit is contained in:
Prateek Saxena 2014-02-13 07:28:31 +05:30
parent cde2c2f182
commit e9ad2ef798
2 changed files with 4 additions and 5 deletions

View file

@ -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()

View file

@ -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;
}