summaryrefslogtreecommitdiff
path: root/assets/js/core
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-08 22:17:02 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-08 22:17:02 -0500
commit72cea716923acc665ad6c86d964e9c73c0e650a0 (patch)
tree14289eea3ec13ebcaf11a2168bb06e1fd38c37ae /assets/js/core
parent60ea5c63533182f9fb9deb93e44cdc4426923b13 (diff)
Improve mobile view
Diffstat (limited to 'assets/js/core')
-rw-r--r--assets/js/core/modal.js4
1 files changed, 4 insertions, 0 deletions
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';