Skip to content

Commit f6a230b

Browse files
committed
feat: enable option to have the full height functioning
1 parent 7020981 commit f6a230b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/ngx-hover-opacity.component.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface INgxHoverOpacityComponentCustomStyle {
1313
@Component({
1414
selector: 'ngx-hover-opacity',
1515
template: `
16-
<div class="content">
16+
<div class="content" [class.is-full-height]="isFullHeight">
1717
<ng-content></ng-content>
1818
1919
<div
@@ -24,9 +24,13 @@ export interface INgxHoverOpacityComponentCustomStyle {
2424
`,
2525
styles: [
2626
`
27-
ngx-hover-opacity
27+
ngx-hover-opacity {
2828
.content {
2929
position: relative;
30+
31+
&.is-full-height {
32+
min-height: 100%;
33+
}
3034
}
3135
3236
.hover {
@@ -46,5 +50,6 @@ export interface INgxHoverOpacityComponentCustomStyle {
4650
})
4751
export class NgxHoverOpacityComponent {
4852
@Input() isHoverVisible: boolean;
53+
@Input() isFullHeight = true;
4954
@Input() style: INgxHoverOpacityComponentCustomStyle;
5055
}

0 commit comments

Comments
 (0)