From f53f2e8836bed48afb5d4e00de0dec52f05c2a16 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Mon, 30 Jan 2017 16:52:24 -0500 Subject: [PATCH 1/2] Move buttons out of the way on small screens --- list.php | 3 +-- scripts/pi-hole/js/list.js | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/list.php b/list.php index 3f720e78..66bf7338 100644 --- a/list.php +++ b/list.php @@ -35,8 +35,7 @@ function getFullName() { - - } + diff --git a/scripts/pi-hole/js/list.js b/scripts/pi-hole/js/list.js index d0dc387d..c23b8267 100644 --- a/scripts/pi-hole/js/list.js +++ b/scripts/pi-hole/js/list.js @@ -201,3 +201,12 @@ $(function(){ $(this).closest("." + $(this).attr("data-hide")).hide(); }); }); + +$(document).ready(function () { + if (screen.width < 400) { + $(".input-group-btn").css("display", "initial"); + } + else { + $(".input-group-btn").css("display", "table-cell"); + } +}); From bc484338b4a7c746e0da50ab0a2a298f91cab770 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Mon, 30 Jan 2017 17:05:55 -0500 Subject: [PATCH 2/2] Fit closer to Bootstrap layout sizes --- scripts/pi-hole/js/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/list.js b/scripts/pi-hole/js/list.js index c23b8267..379a3148 100644 --- a/scripts/pi-hole/js/list.js +++ b/scripts/pi-hole/js/list.js @@ -203,7 +203,7 @@ $(function(){ }); $(document).ready(function () { - if (screen.width < 400) { + if (screen.width < 576) { $(".input-group-btn").css("display", "initial"); } else {