Skip to content

Commit

Permalink
Try a better fix for responsive and avoid scrolling on field selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 11, 2016
1 parent 190f432 commit c6293db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
7 changes: 6 additions & 1 deletion htdocs/theme/eldy/style.css.php
Expand Up @@ -588,9 +588,14 @@
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;
}

Expand Down
11 changes: 8 additions & 3 deletions htdocs/theme/md/style.css.php
Expand Up @@ -587,15 +587,20 @@
}

/* 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 {

This comment has been minimized.

Copy link
@jfefe

jfefe Dec 11, 2016

Contributor

Please insert space into rule and avoid div selector :

.fiche > form > .div-table-responsive {

overflow-x: auto;
min-height: 350px;
}

Expand Down

0 comments on commit c6293db

Please sign in to comment.