diff --git a/src/components/Timeline.jsx b/src/components/Timeline.jsx index 5e66abc..887302e 100644 --- a/src/components/Timeline.jsx +++ b/src/components/Timeline.jsx @@ -337,7 +337,7 @@ class Timeline extends React.Component { dims={dims} selected={this.props.app.selected} getEventX={this.getDatetimeX} - getCategoryY={this.state.scaleY} + getY={e => this.state.scaleY(e.category)} transitionDuration={this.state.transitionDuration} styles={this.props.ui.styles} noCategories={this.props.domain.categories && this.props.domain.categories.length} diff --git a/src/components/presentational/Timeline/Events.js b/src/components/presentational/Timeline/Events.js index 6ac5e29..13142e8 100644 --- a/src/components/presentational/Timeline/Events.js +++ b/src/components/presentational/Timeline/Events.js @@ -80,7 +80,7 @@ const TimelineEvents = ({ fill: categoryColor, fillOpacity: HAS_PROJECTS ? unlocatedEvents.some(ev => ev.projectOffset >= 0) ? getEventOpacity(unlocatedEvents) : 0.05 - : getEventOpacity(unlocatedEvents) + : getEventOpacity(unlocatedEvents) / 4 } const extraRender = customStyles[1]