diff --git a/html/css/styles.css b/html/css/styles.css index a015ee824..56c116842 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -1481,3 +1481,11 @@ tr.search:nth-child(odd) { padding: 7px; } +.overlib { + width: 590px; +} + +.overlib-text { + font-weight: bold; + font-size: 16px; +} diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index 87cc59379..2a441fc61 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -83,7 +83,7 @@ function generate_overlib_content($graph_array, $text) { global $config; - $overlib_content = '
'.$text."
"; + $overlib_content = '
'.$text."
"; foreach (array('day','week','month','year') as $period) { $graph_array['from'] = $config['time'][$period]; @@ -138,16 +138,13 @@ function generate_device_link($device, $text=NULL, $vars=array(), $start=0, $end $url = generate_device_url($device, $vars); - $contents = "
".$device['hostname']; + // beginning of overlib box contains large hostname followed by hardware & OS details + $contents = "
".$device['hostname'].""; if ($device['hardware']) { $contents .= " - ".$device['hardware']; } - $contents .= "
"; - - $contents .= "
"; - if ($device['os']) { $contents .= mres($config['os'][$device['os']]['text']); } + if ($device['os']) { $contents .= " - ".mres($config['os'][$device['os']]['text']); } if ($device['version']) { $contents .= " ".mres($device['version']); } if ($device['features']) { $contents .= " (".mres($device['features']).")"; } - if ($device['hardware']) { $contents .= " - ".$device['hardware']; } - if (isset($device['location'])) { $contents .= "
" . htmlentities($device['location']); } + if (isset($device['location'])) { $contents .= " - " . htmlentities($device['location']); } $contents .= "
"; foreach ($graphs as $entry)