mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-18 21:43:49 +00:00
Increased minimum charts height
This commit is contained in:
@@ -88,7 +88,7 @@ const renderGraph = (title, isBarChart, stats, max, highlightedStats, onClick) =
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
const graphData = generateGraphData(title, isBarChart, labels, data, highlightedData);
|
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
|
// Provide a key based on the height, so that every time the dataset changes, a new graph is rendered
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ const ShortUrlVisits = ({ processStatsFromVisits, normalizeVisits }, OpenMapModa
|
|||||||
</div>
|
</div>
|
||||||
<div className="col-lg-5 col-xl-6 mt-4 mt-lg-0">
|
<div className="col-lg-5 col-xl-6 mt-4 mt-lg-0">
|
||||||
{showTableControls && (
|
{showTableControls && (
|
||||||
<span className={classNames({ 'row flex-row-reverse': isMobileDevice })}>
|
<span className={classNames({ row: isMobileDevice })}>
|
||||||
<span className={classNames({ 'col-6': isMobileDevice })}>
|
<span className={classNames({ 'col-6': isMobileDevice })}>
|
||||||
<Button outline color="primary" block={isMobileDevice} onClick={toggleTable}>
|
<Button outline color="primary" block={isMobileDevice} onClick={toggleTable}>
|
||||||
{showTable ? 'Hide' : 'Show'} table
|
{showTable ? 'Hide' : 'Show'} table
|
||||||
|
|||||||
Reference in New Issue
Block a user