From 5fef13b97b3f47bcaba5a4688822382eab485e19 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Mon, 21 Nov 2016 08:51:42 +0100 Subject: [PATCH] Fixed problems with values in simple value in visual maps (cherry picked from commit f16628b8c15aad939cf7627a3e06b86fe3a7e30b) --- pandora_console/include/functions_visual_map.php | 3 ++- pandora_console/include/styles/pandora.css | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index e972eb0eb7..d0fe0556b2 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -1261,7 +1261,8 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY) } $value = preg_replace ('/\n/i','
',$value); - $value = preg_replace ('/\s/i',' ',$value); + $value = preg_replace ('/\t/i',' ',$value); + $value = preg_replace ('/\s/i',' ',$value); return $value; break; diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index cdadef6ac5..40ad4f71a1 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -3339,8 +3339,11 @@ div#vc-controls img.vc-qr { margin-right: 8px; } div.simple_value > span.text > p, -div.simple_value > a > span.text > p { - font-family: monospace; +div.simple_value > span.text > p > span > strong, +div.simple_value > span.text > p > strong, +div.simple_value > a > span.text p +{ + font-family: monospace !important; white-space: pre; }