Jonas Kress (WMDE) has uploaded a new change for review. https://gerrit.wikimedia.org/r/272991
Change subject: Fixes lightbox image size in ImageResultBrowser ...................................................................... Fixes lightbox image size in ImageResultBrowser Change-Id: I4fd252da0b9fcd242fa26b2b1b9c94f2dde0fd86 --- M wikibase/queryService/ui/resultBrowser/ImageResultBrowser.js 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/gui refs/changes/91/272991/1 diff --git a/wikibase/queryService/ui/resultBrowser/ImageResultBrowser.js b/wikibase/queryService/ui/resultBrowser/ImageResultBrowser.js index 6cb17b9..d9ef097 100644 --- a/wikibase/queryService/ui/resultBrowser/ImageResultBrowser.js +++ b/wikibase/queryService/ui/resultBrowser/ImageResultBrowser.js @@ -49,7 +49,7 @@ regEx = new RegExp( COMMONS_FILE_PATH, "ig" ), fileName = decodeURIComponent( url.replace( regEx, '' ) ); - self._grid.append( self._getItem( self._getThumbnail( url ), fileName ) ); + self._grid.append( self._getItem( self._getThumbnail( url ), self._getThumbnail( url, 1000 ), fileName ) ); } } ); } ); @@ -80,7 +80,7 @@ /** * @private **/ - SELF.prototype._getItem = function( url, title ) { + SELF.prototype._getItem = function( thumbnailUrl, url, title ) { var triggerGallery = function(event) { event.preventDefault(); @@ -91,7 +91,7 @@ image = $( '<a href="' + url +'" data-gallery="g">' ) .click( triggerGallery ) .attr( 'data-title', title ) - .append( $( '<img src="' + url +'"></div>' ) ); + .append( $( '<img src="' + thumbnailUrl +'"></div>' ) ); return $( '<div class="item">' ).append( heading, image ); -- To view, visit https://gerrit.wikimedia.org/r/272991 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4fd252da0b9fcd242fa26b2b1b9c94f2dde0fd86 Gerrit-PatchSet: 1 Gerrit-Project: wikidata/query/gui Gerrit-Branch: master Gerrit-Owner: Jonas Kress (WMDE) <jonas.kr...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits