[icinga-checkins] icinga.org: icingaweb2/bugfix/word-break-in-plugin-output-10820: Force browsers to respect overflow of plugin output in tables

git at icinga.org git at icinga.org
Sat Feb 27 21:30:56 CET 2016


Module: icingaweb2
Branch: bugfix/word-break-in-plugin-output-10820
Commit: d4dcdb96bd1705f1d48cb578fc74f692b9f0cfa3
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=d4dcdb96bd1705f1d48cb578fc74f692b9f0cfa3

Author: Eric Lippmann <eric.lippmann at netways.de>
Date:   Sat Feb 27 18:06:35 2016 +0100

Force browsers to respect overflow of plugin output in tables

refs #10820

---

 modules/monitoring/public/css/tables.less |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/monitoring/public/css/tables.less b/modules/monitoring/public/css/tables.less
index 93fa030..a0bdfa3 100644
--- a/modules/monitoring/public/css/tables.less
+++ b/modules/monitoring/public/css/tables.less
@@ -91,6 +91,12 @@
   font-size: @font-size-small;
   margin: 0;
   white-space: pre-wrap;
+  // Long text in table cells overflows the table's width if the table's layout is not fixed.
+  // Thus overflow-wrap will not have any effect. But w/ the following we set a width of any value
+  // plus a min-width of 100% to consume the full width nonetheless which seems to always
+  // instruct browsers to not overflow the table. Ridiculous.
+  min-width: 100%;
+  width: 1em;
 }
 
 // Table for performance data in detail views



More information about the icinga-checkins mailing list