Increased minimum charts height

This commit is contained in:
Alejandro Celaya 2020-04-10 19:47:42 +02:00
parent e37fb1b4bd
commit 7cf49d2c1a
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ const renderGraph = (title, isBarChart, stats, max, highlightedStats, onClick) =
}),
};
const graphData = generateGraphData(title, isBarChart, labels, data, highlightedData);
const height = isBarChart && labels.length > 20 ? labels.length * 8 : null;
const height = isBarChart && labels.length > 20 ? labels.length * 8 : 200;
// Provide a key based on the height, so that every time the dataset changes, a new graph is rendered
return (

View file

@ -198,7 +198,7 @@ const ShortUrlVisits = ({ processStatsFromVisits, normalizeVisits }, OpenMapModa
</div>
<div className="col-lg-5 col-xl-6 mt-4 mt-lg-0">
{showTableControls && (
<span className={classNames({ 'row flex-row-reverse': isMobileDevice })}>
<span className={classNames({ row: isMobileDevice })}>
<span className={classNames({ 'col-6': isMobileDevice })}>
<Button outline color="primary" block={isMobileDevice} onClick={toggleTable}>
{showTable ? 'Hide' : 'Show'} table