MediaWiki:Common.js: Difference between revisions
From Destinypedia, the Destiny wiki
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
/* Fix media gallery negative margin bug */ | /* Fix media gallery negative margin bug */ | ||
$('.gallerybox > div > .thumb > div:first-child').each(function(i, obj) { | |||
if ($(this).css('margin-top') == '-25px') | |||
$(this).css('margin', '15px auto'); | |||
}); | }); | ||