diff --git a/ui-ngx/src/app/modules/home/components/widget/widget-container.component.scss b/ui-ngx/src/app/modules/home/components/widget/widget-container.component.scss index b2b14dcc3e..61b8345a46 100644 --- a/ui-ngx/src/app/modules/home/components/widget/widget-container.component.scss +++ b/ui-ngx/src/app/modules/home/components/widget/widget-container.component.scss @@ -13,9 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -:host { - -} tb-widget.tb-widget { position: relative; @@ -92,6 +89,10 @@ div.tb-widget { min-height: 20px; font-size: 20px; line-height: 20px; + svg { + width: 20px; + height: 20px; + } } } } diff --git a/ui-ngx/src/app/modules/home/components/widget/widget-container.component.ts b/ui-ngx/src/app/modules/home/components/widget/widget-container.component.ts index dd558f2386..bf7042d233 100644 --- a/ui-ngx/src/app/modules/home/components/widget/widget-container.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/widget-container.component.ts @@ -17,18 +17,25 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, - Component, ElementRef, - EventEmitter, HostBinding, Inject, - Input, OnDestroy, + Component, + ElementRef, + EventEmitter, + HostBinding, + Inject, + Input, + OnDestroy, OnInit, - Output, Renderer2, ViewChild + Output, + Renderer2, + ViewChild, + ViewEncapsulation } from '@angular/core'; import { PageComponent } from '@shared/components/page.component'; import { DashboardWidget, DashboardWidgets } from '@home/models/dashboard-component.models'; import { Store } from '@ngrx/store'; import { AppState } from '@core/core.state'; import { SafeStyle } from '@angular/platform-browser'; -import { guid, hashCode, isNotEmptyStr } from '@core/utils'; +import { guid, isNotEmptyStr } from '@core/utils'; import cssjs from '@core/css/css'; import { DOCUMENT } from '@angular/common'; import { GridsterItemComponent } from 'angular-gridster2'; @@ -52,6 +59,7 @@ export class WidgetComponentAction { selector: 'tb-widget-container', templateUrl: './widget-container.component.html', styleUrls: ['./widget-container.component.scss'], + encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush }) export class WidgetContainerComponent extends PageComponent implements OnInit, OnDestroy {