small fixes

This commit is contained in:
Lachlan Kermode
2020-06-10 12:48:45 +02:00
parent d963ac0643
commit dd679f8943
5 changed files with 6 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ class TimelineAxis extends React.Component {
/>
<g
ref={this.xAxis1Ref}
transform={`translate(0, ${this.props.dims.trackHeight + PADDING})`}
transform={`translate(0, ${this.props.dims.trackHeight + PADDING - 2*(PADDING / 3)})`}
clipPath={`url(#clip)`}
className={`axis axisHourText`}
/>

View File

@@ -45,7 +45,7 @@ function MapEvents ({
fill: getCategoryColor(locCategory),
stroke: colors.darkBackground,
strokeWidth: 0,
fillOpacity: calcOpacity(location.events.length),
fillOpacity: narrative ? 1 : calcOpacity(location.events.length),
...extraStyles
})

View File

@@ -1,6 +1,8 @@
import React from 'react'
const TimelineHandles = ({ dims, onMoveTime }) => {
return null
// temporarilty disabled while we get functionality working again
return (
<g className='time-controls-inline'>
<g

View File

@@ -27,7 +27,7 @@ const TimelineLabels = ({ dims, timelabels }) => {
<text
class='timelabelF timeLabel'
x={dims.width - dims.width_controls - 5}
y='15'
y='135'
style={{ textAnchor: 'end' }}
>
{timelabels[1]}