From b1a45b58880e40ca1c2304610e81d68f7dff938d Mon Sep 17 00:00:00 2001 From: "Carney, Sarah A" Date: Tue, 6 Jun 2017 09:56:36 -0500 Subject: [PATCH 1/3] INTERIM-75 Include Views tables with class --- js/suitcase_responsive_tables.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/suitcase_responsive_tables.js b/js/suitcase_responsive_tables.js index 0169f13..bf9ebb3 100644 --- a/js/suitcase_responsive_tables.js +++ b/js/suitcase_responsive_tables.js @@ -2,8 +2,8 @@ $(document).ready(function() { - // Just tables in content - var table = $('.field-items table'); + // Find tables in content, or Views tables with the .views-table-responsive class + var table = $('.field-items table, views-table-responsive table'); /* --------------------- First, check the table From 3c1c21d3381e0e442a68c1055863319143cb9983 Mon Sep 17 00:00:00 2001 From: "Carney, Sarah A" Date: Tue, 6 Jun 2017 10:01:56 -0500 Subject: [PATCH 2/3] INTERIM-75 Allow Views tables to scroll horizontally --- css/suitcase.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/css/suitcase.css b/css/suitcase.css index ab63934..f3b5b90 100644 --- a/css/suitcase.css +++ b/css/suitcase.css @@ -2172,6 +2172,12 @@ table.responsive-table, } } +/* --- Views Tables - Overflow --- */ +/* Add this class to table Views */ + +.views-table-overflow .view-content { + overflow-x: auto; +} /* ---------------------------------------- */ /* ## SEARCH From 96da34c43882db773aec79cee0f9a0aa610f45c9 Mon Sep 17 00:00:00 2001 From: Angela McMahon Date: Tue, 6 Jun 2017 11:27:08 -0500 Subject: [PATCH 3/3] INTERIM-75 Fix typo --- js/suitcase_responsive_tables.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/suitcase_responsive_tables.js b/js/suitcase_responsive_tables.js index bf9ebb3..9509828 100644 --- a/js/suitcase_responsive_tables.js +++ b/js/suitcase_responsive_tables.js @@ -3,7 +3,7 @@ $(document).ready(function() { // Find tables in content, or Views tables with the .views-table-responsive class - var table = $('.field-items table, views-table-responsive table'); + var table = $('.field-items table, .views-table-responsive table'); /* --------------------- First, check the table @@ -75,4 +75,4 @@ to make the tables responsive }); }); -})(jQuery); \ No newline at end of file +})(jQuery);