aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-03-11 22:35:11 +0000
committerzsloan2021-06-18 19:31:27 +0000
commitc81255153ac44462ee378908af12646a2697933c (patch)
tree49cce420bb0d16ad5a01293a0e505b9551b9e034
parent498a7760fa70788827a28b90ea6f2fd0d94931a5 (diff)
downloadgenenetwork2-c81255153ac44462ee378908af12646a2697933c.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.css18
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