DAT-3934 make image bigger and adjusted by css

This commit is contained in:
idradm 2016-03-16 09:50:01 +01:00
parent a0e41bfea5
commit 60d87fc123
2 changed files with 7 additions and 2 deletions

View file

@ -6,7 +6,8 @@ use \Wikia\Logger\WikiaLogger;
class PortableInfoboxRenderServiceHelper {
const LOGGER_LABEL = 'portable-infobox-render-not-supported-type';
const DESKTOP_THUMBNAIL_WIDTH = 270;
const DESKTOP_THUMBNAIL_WIDTH = 300;
const DESKTOP_IMAGE_ITEM_WIDTH = '100%';
const MOBILE_THUMBNAIL_WIDTH = 360;
const MINIMAL_HERO_IMG_WIDTH = 300;
const MAX_DESKTOP_THUMBNAIL_HEIGHT = 500;
@ -62,7 +63,7 @@ class PortableInfoboxRenderServiceHelper {
$data[ 'ref' ] = $ref;
$data[ 'height' ] = $dimensions[ 'height' ];
$data[ 'width' ] = $dimensions[ 'width' ];
$data[ 'width' ] = self::DESKTOP_IMAGE_ITEM_WIDTH;
$data[ 'thumbnail' ] = $thumbnail->getUrl();
$data[ 'key' ] = urlencode( $data[ 'key' ] );
$data[ 'media-type' ] = $data[ 'isVideo' ] ? 'video' : 'image';

View file

@ -147,6 +147,10 @@ $tabber-background-color: mix($color-buttons, $color-page, $background-color-mix
}
}
.pi-image {
width: 300px;
}
.pi-image-collection-tabs {
background-color: $background-color;
margin: 0;