diff options
author | zsloan | 2021-03-11 22:35:11 +0000 |
---|---|---|
committer | zsloan | 2021-03-11 22:35:11 +0000 |
commit | 3c4043e445d0708490b2a14805b8e3eaa75c23fd (patch) | |
tree | 659aca47c9b5db2687683293b15601b3661f15c4 | |
parent | 6e78df4be9abb7e1ce959e9b83b9d38bd77fcade (diff) | |
download | genenetwork2-3c4043e445d0708490b2a14805b8e3eaa75c23fd.tar.gz |
Added some CSS to make cell content cut off with ellipses if a column is narrower than the content's width
-rw-r--r-- | wqflask/wqflask/static/new/css/trait_list.css | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/css/trait_list.css b/wqflask/wqflask/static/new/css/trait_list.css index c7249721..6d49f009 100644 --- a/wqflask/wqflask/static/new/css/trait_list.css +++ b/wqflask/wqflask/static/new/css/trait_list.css @@ -52,3 +52,21 @@ div.dts div.dataTables_paginate,div.dts div.dataTables_length{ display:none } +/* This is the important CSS */ +table.dataTable { + table-layout: fixed; + width: 100%; + white-space: nowrap; + overflow: hidden; +} + +table.dataTable th { + white-space: nowrap; + overflow: hidden; +} + +table.dataTable td { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +}
\ No newline at end of file |