Browse Source

UI: Minor improvements

pull/8169/head
Igor Kulikov 4 years ago
parent
commit
8c8de8c188
  1. 7
      ui-ngx/src/app/modules/home/components/widget/widget-container.component.scss
  2. 18
      ui-ngx/src/app/modules/home/components/widget/widget-container.component.ts

7
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;
}
}
}
}

18
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 {

Loading…
Cancel
Save