Skip to content

Commit

Permalink
feat(items): add offset for non start items
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Dec 15, 2016
1 parent 2d2211c commit 78eb687
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/client/build/build.css
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,14 @@ lb-items {
height: 300px;
}

lb-items:before {
background-color: #f3f3f3;
content: '';
height: 300px;
position: absolute;
width: 52px;
}

lb-items lb-item {
display: inline-block;
position: relative;
Expand Down
3 changes: 3 additions & 0 deletions src/client/build/items/item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export class ItemComponent implements DoCheck {
return;
}
let offset = this.xScaleTime.get()(this.item.time);
if (offset > 0) {
offset += 60;
}
this.el.nativeElement.setAttribute('style', 'left: ' + offset + 'px');
this.itemPrev = this.item;
}
Expand Down

0 comments on commit 78eb687

Please sign in to comment.