From: Sebastian Harl Date: Fri, 21 Nov 2014 22:54:53 +0000 (+0100) Subject: Make sure to break overly long "words" when displaying attribute values. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=88036330fe1fb1806364f816375eba5afbe77772;p=sysdb%2Fwebui.git Make sure to break overly long "words" when displaying attribute values. --- diff --git a/static/style/main.css b/static/style/main.css index d358e9b..4ad9665 100644 --- a/static/style/main.css +++ b/static/style/main.css @@ -156,5 +156,12 @@ table.results { table.results th, table.results td { border: 1px solid #1e466d; padding: 3px; + text-align: left; vertical-align: top; + word-wrap: break-word; + white-space: normal; +} + +table.results td.value { + word-break: break-all; } diff --git a/templates/host.tmpl b/templates/host.tmpl index 6b56446..6193070 100644 --- a/templates/host.tmpl +++ b/templates/host.tmpl @@ -7,7 +7,7 @@ {{if len .Attributes}} Attributes {{range .Attributes}} - {{.Name}}{{.Value}} + {{.Name}}{{.Value}} {{end}} {{else}} No attributes diff --git a/templates/metric.tmpl b/templates/metric.tmpl index a264801..40be05c 100644 --- a/templates/metric.tmpl +++ b/templates/metric.tmpl @@ -9,7 +9,7 @@ {{if len $m.Attributes}} Attributes {{range $m.Attributes}} - {{.Name}}{{.Value}} + {{.Name}}{{.Value}} {{end}} {{else}} No attributes diff --git a/templates/service.tmpl b/templates/service.tmpl index c5716da..a232458 100644 --- a/templates/service.tmpl +++ b/templates/service.tmpl @@ -8,7 +8,7 @@ {{if len $s.Attributes}} Attributes {{range $s.Attributes}} - {{.Name}}{{.Value}} + {{.Name}}{{.Value}} {{end}} {{else}} No attributes