diff --git a/devui/alert/alert-carousel-item.component.scss b/devui/alert/alert-carousel-item.component.scss index fe8bbc5f..1d02fc40 100644 --- a/devui/alert/alert-carousel-item.component.scss +++ b/devui/alert/alert-carousel-item.component.scss @@ -1,4 +1,5 @@ :host { - display: block; + display: flex; + align-items: center; width: 100%; } diff --git a/devui/alert/alert-carousel-item.component.ts b/devui/alert/alert-carousel-item.component.ts index 71946465..908e145b 100644 --- a/devui/alert/alert-carousel-item.component.ts +++ b/devui/alert/alert-carousel-item.component.ts @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import { Component, ElementRef } from '@angular/core'; @Component({ selector: 'd-alert-carousel-item', @@ -6,4 +6,6 @@ import { Component } from '@angular/core'; template: ``, preserveWhitespaces: false, }) -export class AlertCarouselItemComponent {} +export class AlertCarouselItemComponent { + constructor(public el: ElementRef) {} +} diff --git a/devui/alert/alert.component.html b/devui/alert/alert.component.html index e9a121a2..d471bd7a 100755 --- a/devui/alert/alert.component.html +++ b/devui/alert/alert.component.html @@ -1,4 +1,4 @@ -
+
-