Skip to content

Commit

Permalink
ref bar alignment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
auchers committed Aug 19, 2020
1 parent 8fc3fb9 commit aae5fe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/components/BarTimeline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export default class BarTimeline {
} return '';
})
.classed(C.GRADIENT, (d, i) => (stepData.step_id >= tStopsMap.get(TS.GRADIENT)))
.classed('center', (d, i) => (stepData.step_id >= tStopsMap.get(TS.MOVE_REFS)))
.style('width', (d, i) => {
if (i === 0) return `${this.middleX}px`;
return stepData.step_id >= tStopsMap.get(TS.MOVE_REFS)
Expand Down
4 changes: 4 additions & 0 deletions app/src/components/BarTimeline/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@
opacity: 1;
}

&.center.post{
margin-left: calc(#{$thickBorderWidth}/2);
}

&.gradient {
&.post{
background-color:$colorYellow;
Expand Down

0 comments on commit aae5fe1

Please sign in to comment.