mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-27 17:00:37 +00:00
Remove viewBox from SVG, not needed.
Bug: 63590 Change-Id: Ia1e85441389377cab2720b5410cbf602a42fafe0
This commit is contained in:
parent
030c2512b1
commit
64fdebe496
|
@ -148,7 +148,6 @@
|
||||||
$thumbnail = $( '<svg>' )
|
$thumbnail = $( '<svg>' )
|
||||||
.attr( {
|
.attr( {
|
||||||
xmlns: 'http://www.w3.org/2000/svg',
|
xmlns: 'http://www.w3.org/2000/svg',
|
||||||
viewBox: '0 0 ' + SIZES.portraitImage.w + ' ' + SIZES.portraitImage.h,
|
|
||||||
width: SIZES.portraitImage.w,
|
width: SIZES.portraitImage.w,
|
||||||
height: SIZES.portraitImage.h
|
height: SIZES.portraitImage.h
|
||||||
} )
|
} )
|
||||||
|
@ -177,9 +176,6 @@
|
||||||
$thumbnail = $( '<svg>' )
|
$thumbnail = $( '<svg>' )
|
||||||
.attr( {
|
.attr( {
|
||||||
xmlns: 'http://www.w3.org/2000/svg',
|
xmlns: 'http://www.w3.org/2000/svg',
|
||||||
viewBox: '0 0 ' + SIZES.landscapeImage.w + ' ' + ( thumbnail.height > SIZES.landscapeImage.h ) ?
|
|
||||||
SIZES.landscapeImage.h :
|
|
||||||
thumbnail.height,
|
|
||||||
width: SIZES.landscapeImage.w + 3,
|
width: SIZES.landscapeImage.w + 3,
|
||||||
height: ( thumbnail.height > SIZES.landscapeImage.h ) ?
|
height: ( thumbnail.height > SIZES.landscapeImage.h ) ?
|
||||||
SIZES.landscapeImage.h :
|
SIZES.landscapeImage.h :
|
||||||
|
|
Loading…
Reference in a new issue