From d676878ab6a32dba38b00c4ac100bb6ff286d996 Mon Sep 17 00:00:00 2001 From: Lachlan Kermode Date: Mon, 20 Apr 2020 17:36:25 +0200 Subject: [PATCH] :lipstick: --- src/components/Timeline.jsx | 2 +- src/components/presentational/Timeline/Events.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]