Skip to content

Commit 4876d21

Browse files
fix: card component padding
1 parent fc479bf commit 4876d21

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.card-content {
2+
display: block;
3+
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
<header class="card-header">
2-
<ng-content></ng-content>
3-
</header>
1+
<ng-content></ng-content>
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
import { ChangeDetectionStrategy, Component, OnInit, ViewEncapsulation } from '@angular/core';
1+
import {
2+
ChangeDetectionStrategy,
3+
Component,
4+
HostBinding,
5+
OnInit,
6+
ViewEncapsulation,
7+
} from '@angular/core';
28

39
@Component({
410
selector: 'bu-card-header',
511
templateUrl: './card-header.component.html',
612
styleUrls: ['./card-header.component.css'],
713
encapsulation: ViewEncapsulation.None,
8-
changeDetection: ChangeDetectionStrategy.OnPush
14+
changeDetection: ChangeDetectionStrategy.OnPush,
915
})
1016
export class BulmaCardHeaderComponent implements OnInit {
17+
@HostBinding('class') class = 'card-header';
1118

12-
constructor() { }
13-
14-
ngOnInit() {
15-
}
19+
constructor() {}
1620

21+
ngOnInit() {}
1722
}

0 commit comments

Comments
 (0)