From 72cea716923acc665ad6c86d964e9c73c0e650a0 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 8 Feb 2017 22:17:02 -0500 Subject: Improve mobile view --- assets/js/core/modal.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'assets/js/core') diff --git a/assets/js/core/modal.js b/assets/js/core/modal.js index 0bbd975b..d3b14192 100644 --- a/assets/js/core/modal.js +++ b/assets/js/core/modal.js @@ -124,6 +124,10 @@ function getWidth(size) { var viewport = KB.utils.getViewportSize(); + if (viewport.width < 700) { + return '99%'; + } + switch (size) { case 'large': return viewport.width < 1350 ? '98%' : '1350px'; -- cgit v1.2.3