mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-25 00:32:16 +02:00
Divide the width by the number of graphs in a row reduced by an arbitrary value to allow margins
Only display one graph per line if width is < 800px
This commit is contained in:
@@ -37,11 +37,13 @@ else {
|
||||
);
|
||||
}//end if
|
||||
|
||||
if($_SESSION['screen_width']) {
|
||||
if($_SESSION['screen_width'] > 800) {
|
||||
if($_SESSION['screen_width'])
|
||||
{
|
||||
if($_SESSION['screen_width'] >= 800)
|
||||
{
|
||||
$graph_array['width'] = ($_SESSION['screen_width'] - 400 )/count($periods)+1;
|
||||
}
|
||||
else {
|
||||
}else
|
||||
{
|
||||
$graph_array['width'] = $_SESSION['screen_width'] - 155;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user