mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Rework the padding and ratio to better fit the lazy loading
This commit is contained in:
@ -39,10 +39,10 @@ else {
|
|||||||
|
|
||||||
if($_SESSION['screen_width']) {
|
if($_SESSION['screen_width']) {
|
||||||
if($_SESSION['screen_width'] > 800) {
|
if($_SESSION['screen_width'] > 800) {
|
||||||
$graph_array['width'] = round(($_SESSION['screen_width'] - 430 )/count($periods)+1,0);
|
$graph_array['width'] = round(($_SESSION['screen_width'] - 90 )/count($periods)+1,0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$graph_array['width'] = $_SESSION['screen_width'] - 155;
|
$graph_array['width'] = $_SESSION['screen_width'] - 70;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,11 +51,11 @@ if( $graph_array['width'] < 215) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($_SESSION['screen_height']) {
|
if($_SESSION['screen_height']) {
|
||||||
if($_SESSION['screen_width'] > 960) {
|
if($_SESSION['screen_height'] > 960) {
|
||||||
$graph_array['height'] = round(($_SESSION['screen_height'] - 250)/5,0);
|
$graph_array['height'] = round(($_SESSION['screen_height'] - 250)/4,0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$graph_array['height'] = round(($_SESSION['screen_height'] - 250)/2,0);
|
$graph_array['height'] = round(($_SESSION['screen_height'] - 250)/3,0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user