From ffbe26ab6e1070d138a8674da9cc0aa3d2f95097 Mon Sep 17 00:00:00 2001 From: PhallenCassidy Date: Sat, 5 Jan 2019 12:02:19 -0500 Subject: [PATCH] Making card filter more mobile-friendly Free Peoples culture buttons should no longer take up two rows for mobile users, and raising the filters will make sure players can at least access card type and keyword filters. --- .../src/main/web/js/gemp-021/cardFilter.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-021/cardFilter.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-021/cardFilter.js index 0262508b2..63454d056 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-021/cardFilter.js +++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-021/cardFilter.js @@ -179,9 +179,6 @@ var CardFilter = Class.extend({ + "" + "" + "" - //Additional Hobbit Draft cultures - + "" - + "" + ""); this.filterDiv.append("
" + "" @@ -193,7 +190,9 @@ var CardFilter = Class.extend({ + "" + "" + "" - //Additional Hobbit Draft Shadow cultures + //Additional Hobbit Draft cultures + + "" + + "" //+ "" //+ "" //+ "" @@ -300,10 +299,10 @@ var CardFilter = Class.extend({ }, layoutUi:function (x, y, width, height) { - this.pageDiv.css({ position:"absolute", left:x, top:y, width:width, height:50 }); + this.pageDiv.css({ position:"absolute", left:x, top:y, width:width, height:34 }); this.countSlider.css({width:width - 100}); - this.fullFilterDiv.css({position:"absolute", left:x, top:y + 50, width:width, height:32}); - this.filterDiv.css({ position:"absolute", left:x, top:y + 82, width:width, height:80 }); + this.fullFilterDiv.css({position:"absolute", left:x, top:y + 34, width:width, height:34}); + this.filterDiv.css({ position:"absolute", left:x, top:y + 68, width:width, height:80 }); }, layoutPageUi: function(x, y, width) {