mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #3640 from tribut/image-keep-aspect
Keep aspect ratio for external images on dashboard
This commit is contained in:
@ -105,6 +105,7 @@ LibreNMS contributors:
|
||||
- Peter Tkatchenko <peter@flytrace.com> (Peter2121)
|
||||
- Marc Runkel <marc@runkel.org> (mrunkel)
|
||||
- Josh Driver <keeperofdakeys@gmail.com> (keeperofdakeys)
|
||||
- Felix Eckhofer <felix@eckhofer.com> (tribut)
|
||||
|
||||
[1]: http://observium.org/ "Observium web site"
|
||||
Observium was written by:
|
||||
|
@ -58,5 +58,5 @@ if( defined('show_settings') || empty($widget_settings) ) {
|
||||
}
|
||||
else {
|
||||
$widget_settings['title'] = $widget_settings['image_title'];
|
||||
$common_output[] = '<a target="_blank" href="'.$widget_settings['target_url'].'"><img class="minigraph-image" width="'.$widget_dimensions['x'].'" height="'.$widget_dimensions['y'].'" src="'.$widget_settings['image_url'].'"/></a>';
|
||||
$common_output[] = '<a target="_blank" href="'.$widget_settings['target_url'].'"><img class="minigraph-image" style="max-width: '.$widget_dimensions['x'].'px; max-height:'.$widget_dimensions['y'].'px;" src="'.$widget_settings['image_url'].'"/></a>';
|
||||
}
|
||||
|
Reference in New Issue
Block a user