diff --git a/projects/ng-github-contributions/src/lib/components/github-board/github-board.component.html b/projects/ng-github-contributions/src/lib/components/github-board/github-board.component.html index 2281f4c..3918a13 100644 --- a/projects/ng-github-contributions/src/lib/components/github-board/github-board.component.html +++ b/projects/ng-github-contributions/src/lib/components/github-board/github-board.component.html @@ -1,5 +1,5 @@ -
-
+
+
Fri Wed diff --git a/projects/ng-github-contributions/src/lib/components/github-board/github-board.component.ts b/projects/ng-github-contributions/src/lib/components/github-board/github-board.component.ts index 9ebfd80..2b6b6a9 100644 --- a/projects/ng-github-contributions/src/lib/components/github-board/github-board.component.ts +++ b/projects/ng-github-contributions/src/lib/components/github-board/github-board.component.ts @@ -33,6 +33,7 @@ export class GithubBoardComponent implements OnInit, OnChanges { } private loadData(): void { + this.loadContributions({}); if (!!this.profile){ this.githubService.loadData(this.profile).then( (contributions) => { @@ -93,12 +94,4 @@ export class GithubBoardComponent implements OnInit, OnChanges { return this.options.showLegend ?? true; } - public get minHeight(): string { - const cellSize = this.options.cellSize ?? DEFAULT_CELL_SIZE; - const labelSize = this.options.labels?.size ?? DEFAULT_LABEL_SIZE; - const legendSize = 8 + Math.max(12, cellSize); - - return `${((cellSize + 6) * 7) + labelSize + legendSize}px`; - } - }