From d15867b065d4088be7444ad5f401075d14ab3696 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 21 Apr 2016 22:41:35 +0100 Subject: [PATCH] Fix image panel --- static/src/js/components/image-panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/src/js/components/image-panel.js b/static/src/js/components/image-panel.js index 53b42c8..085df6c 100644 --- a/static/src/js/components/image-panel.js +++ b/static/src/js/components/image-panel.js @@ -8,7 +8,7 @@ export default function renderImagePanels() { element.css('background-image', 'url("' + element.data('image') + '")'); let height; - switch (element.data('size').toLowerCase()) { + switch (element.data('size')) { case 'small': height = '30'; break; @@ -19,6 +19,6 @@ export default function renderImagePanels() { case 'large': height = '100'; } - element.css('background-image', `${height}vh`); + element.css('height', `${height}vh`); }); }