1
Fork 0

Fix image panel

This commit is contained in:
Jake Howard 2016-04-21 22:41:35 +01:00
parent 1819fa0ef6
commit d15867b065

View file

@ -8,7 +8,7 @@ export default function renderImagePanels() {
element.css('background-image', 'url("' + element.data('image') + '")'); element.css('background-image', 'url("' + element.data('image') + '")');
let height; let height;
switch (element.data('size').toLowerCase()) { switch (element.data('size')) {
case 'small': case 'small':
height = '30'; height = '30';
break; break;
@ -19,6 +19,6 @@ export default function renderImagePanels() {
case 'large': case 'large':
height = '100'; height = '100';
} }
element.css('background-image', `${height}vh`); element.css('height', `${height}vh`);
}); });
} }