Skip to content

Commit

Permalink
Keep the images layout fixed even if some fail to load
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Mar 20, 2018
1 parent 6caea7a commit cec7a1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/Graphite/Web/Widget/Graphs.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ protected function getGraphsList()
'<img id="graphiteImg-'
. md5((string) $imageUrl->without('cachebuster'))
. "\" src=\"$imageUrl\" class=\"detach graphiteImg\" alt=\"\""
. " width=\"$this->width\" height=\"$this->height\">",
. " width=\"$this->width\" height=\"$this->height\""
. " style=\"min-width: {$this->width}px; min-height: {$this->height}px;\">",
$metricVariables,
$bestPos
];
Expand Down
1 change: 1 addition & 0 deletions public/css/module.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ div.images.monitored-object-detail-view {

img.graphiteImg {
width: 100%;
display: block;
}
}

Expand Down

0 comments on commit cec7a1d

Please sign in to comment.