From 88036330fe1fb1806364f816375eba5afbe77772 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 21 Nov 2014 23:54:53 +0100 Subject: [PATCH] Make sure to break overly long "words" when displaying attribute values. --- static/style/main.css | 7 +++++++ templates/host.tmpl | 2 +- templates/metric.tmpl | 2 +- templates/service.tmpl | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) 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 -- 2.30.2