Index: trunk/extensions/UploadWizard/resources/uploadWizard.css |
— | — | @@ -353,7 +353,7 @@ |
354 | 354 | |
355 | 355 | .mwe-upwiz-thumbnail { |
356 | 356 | padding: 0.5em; |
357 | | - width: 120px; |
| 357 | + width: auto; |
358 | 358 | } |
359 | 359 | |
360 | 360 | .mwe-upwiz-thumbnail-side { |
Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -1196,20 +1196,25 @@ |
1197 | 1197 | var $thanksDiv = $j( '<div></div>' ).attr( 'id', id ).addClass( "mwe-upwiz-thanks ui-helper-clearfix" ); |
1198 | 1198 | _this.thanksDiv = $thanksDiv; |
1199 | 1199 | |
1200 | | - var $thumbnailDiv = $j( '<div class="mwe-upwiz-thumbnail mwe-upwiz-thumbnail-side"></div>' ); |
1201 | | - $thanksDiv.append( $thumbnailDiv ); |
| 1200 | + |
| 1201 | + var $thumbnailDiv = $j( '<div></div>' ).addClass( 'mwe-upwiz-thumbnail' ); |
| 1202 | + var $thumbnailCaption = $j( '<div></div>' ) |
| 1203 | + .css( { 'text-align': 'center', 'font-size': 'small' } ) |
| 1204 | + .html( $j( '<a/>' ).html( upload.title.getMainText() ) ); |
| 1205 | + var $thumbnailWrapDiv = $j( '<div></div>' ).addClass( 'mwe-upwiz-thumbnail-side' ); |
| 1206 | + $thumbnailWrapDiv.append( $thumbnailDiv, $thumbnailCaption ); |
1202 | 1207 | upload.setThumbnail( $thumbnailDiv ); |
1203 | | - //upload.setThumbnail( '#' + id + ' .mwe-upwiz-thumbnail' ); |
1204 | 1208 | |
1205 | | - // Set the thumbnail link so that it points to the image description page |
1206 | | - $thumbnailDiv.find( 'a' ).attr( { |
| 1209 | + // Set the thumbnail links so that they point to the image description page |
| 1210 | + $thumbnailWrapDiv.find( 'a' ).attr( { |
1207 | 1211 | 'href': upload.imageinfo.descriptionurl, |
1208 | 1212 | 'target' : '_new' |
1209 | 1213 | } ); |
| 1214 | + $thanksDiv.append( $thumbnailWrapDiv ); |
1210 | 1215 | |
1211 | 1216 | var thumbTitle = String(upload.title); |
1212 | 1217 | var thumbWikiText = "[[" + thumbTitle.replace('_', ' ') + "|thumb|" + gM( 'mwe-upwiz-thanks-caption' ) + "]]"; |
1213 | | - |
| 1218 | + |
1214 | 1219 | $thanksDiv.append( |
1215 | 1220 | $j( '<div class="mwe-upwiz-data"></div>' ) |
1216 | 1221 | .append( |