mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 20:09:44 +00:00
DAT-3934 make image bigger and adjusted by css
This commit is contained in:
parent
a0e41bfea5
commit
60d87fc123
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue