From c6293db23c860894509156c56277049bdb7a048e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 11 Dec 2016 11:28:30 +0100 Subject: [PATCH] Try a better fix for responsive and avoid scrolling on field selectors --- htdocs/theme/eldy/style.css.php | 7 ++++++- htdocs/theme/md/style.css.php | 11 ++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index af83c01986c..45da1eee13c 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -588,9 +588,14 @@ div.myavailability { overflow-y: hidden; -ms-overflow-style: -ms-autohiding-scrollbar; }*/ +/* Style used for most tables */ .div-table-responsive { overflow-x: auto; - /*min-height: 0.01%;*/ + min-height: 0.01%; +} +/* Style used for full page tables with field selector and no content after table (priority before previous for such tables) */ +div.fiche>form>div.div-table-responsive { + overflow-x: auto; min-height: 350px; } diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 0d802a2c345..c95bd830059 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -587,15 +587,20 @@ div.myavailability { } /* DOL_XXX for future usage (when left menu has been removed). If we do not use datatable */ -.table-responsive { +/*.table-responsive { width: calc(100% - 330px); margin-bottom: 15px; overflow-y: hidden; -ms-overflow-style: -ms-autohiding-scrollbar; -} +}*/ +/* Style used for most tables */ .div-table-responsive { overflow-x: auto; - /*min-height: 0.01%;*/ + min-height: 0.01%; +} +/* Style used for full page tables with field selector and no content after table (priority before previous for such tables) */ +div.fiche>form>div.div-table-responsive { + overflow-x: auto; min-height: 350px; }