Fixes for column width defaults
authorStephanie Leary <stephanie.leary@equinoxoli.org>
Mon, 27 Mar 2023 17:11:49 +0000 (17:11 +0000)
committerStephanie Leary <stephanie.leary@equinoxoli.org>
Mon, 27 Mar 2023 17:11:49 +0000 (17:11 +0000)
Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org>
Open-ILS/src/eg2/src/app/share/grid/grid.component.css

index a82b443..6f8bf75 100644 (file)
@@ -241,16 +241,12 @@ components' CSS to override the default width.
 
 .eg-grid td {
   vertical-align: top;
-  /*
-  white-space: nowrap;
-  text-overflow: ellipsis;
-  overflow: hidden;
-  /**/
+  white-space: normal;
+  word-break: break-all;
 }
 
 .eg-grid-col-utilities col {
-  min-width: 2em;
-  max-width: 8ch;
+  min-width: 4ch;
 }
 
 .eg-grid-checkbox-cell,
@@ -273,9 +269,13 @@ components' CSS to override the default width.
   font-variant-numeric: tabular-nums lining-nums;
 }
 
-.eg-grid-col-name {
-  min-width: 10ch;
+.eg-grid td.eg-grid-number-cell {
   white-space: nowrap;
+}
+
+.eg-grid-col-name {
+  width: 30ch;
+  hyphens: none !important;
   /* use with <wbr> before periods: */
   /*
   overflow-wrap: break-word;
@@ -287,12 +287,12 @@ components' CSS to override the default width.
 }
 
 .eg-grid-col-barcode {
-  min-width: 14ch;
+  width: 16ch;
 }
 
 .eg-grid-col-description,
 .eg-grid-col-label {
-  min-width: 20ch;
+  width: 20ch;
 }
 
 /* <td> only, not the headers */
@@ -303,6 +303,7 @@ td.eg-grid-col-datatype {
 
 td.eg-grid-col-url,
 td.eg-grid-col-email {
+  hyphens: none !important;
   overflow-wrap: anywhere;
   word-break: break-all;
 }
\ No newline at end of file