Skip to content

Commit

Permalink
feat: Ensure charts examples have a height defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 16, 2020
1 parent 7020f7a commit c4e6094
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/templates/ComponentReferenceTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,24 @@ import useComponentDoc from '../hooks/useComponentDoc';
import IconGallery from '../components/IconGallery';
import TypeDefReference from '../components/TypeDefReference';

const chartStyles = {
height: '200px',
};

const previewStyles = {
AreaChart: chartStyles,
BarChart: chartStyles,
BillboardChart: chartStyles,
FunnelChart: chartStyles,
HeatmapChart: chartStyles,
HistogramChart: chartStyles,
JsonChart: chartStyles,
LineChart: chartStyles,
PieChart: chartStyles,
ScatterChart: chartStyles,
SparklineChart: chartStyles,
StackedBarChart: chartStyles,
TableChart: chartStyles,
Spinner: {
height: '16px',
},
Expand Down

0 comments on commit c4e6094

Please sign in to comment.