Support » Plugin: Google Analytics Dashboard » [Plugin: Google Analytics Dashboard] graph is wider than widget – css fix
4 years, 5 months ago
When the dashboard is set to two columns, at narrower widths (& always on an iPad) the chart graphic on the google analytic dashboard widget is wider than the widget so can look messy.
As a workaround I changed line 73 of gad-admin-dashboard-ui.php to include a smidgen of inline css to make the image no more than 100% of its enclosing div and the height adjust automatically.
<img width="450" height="200" style="max-width: 100%; height: auto;" src="<?php echo $this->ga_data->create_google_chart_url(450, 200); ?>"/>
It might be useful if this could be included in the next update.