Skip to content

Commit

Permalink
feat: add side shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerkay committed Jun 1, 2020
1 parent 1806171 commit e5c7fd0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/gantt/src/gantt-dom.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ export class GanttDomService implements OnDestroy {
fromEvent(this.mainContainer, 'scroll')
.pipe(startWith(), takeUntil(this.unsubscribe$))
.subscribe((event) => {
if (this.mainContainer.scrollLeft > 0) {
this.side.classList.add('gantt-side-has-shadow');
} else {
this.side.classList.remove('gantt-side-has-shadow');
}
// if (this.mainContainer.scrollLeft > 0) {
// this.side.classList.add('gantt-side-has-shadow');
// } else {
// this.side.classList.remove('gantt-side-has-shadow');
// }
});
}

Expand Down
2 changes: 1 addition & 1 deletion packages/gantt/src/gantt.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="gantt-side" [style.width.px]="sideWidth">
<div class="gantt-side gantt-side-has-shadow" [style.width.px]="sideWidth">
<gantt-table [groups]="groups" [items]="items" [columns]="columns" [groupTemplate]="groupTemplate"></gantt-table>
</div>
<div class="gantt-container">
Expand Down
1 change: 1 addition & 0 deletions packages/gantt/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
export * from './gantt.module';
export * from './gantt.component';
export * from './table/column/column.component';
export * from './class';

0 comments on commit e5c7fd0

Please sign in to comment.