mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
fix(dashboard): improve contacts responsiveness
This commit is contained in:
parent
97caa36fd3
commit
754c148e69
3 changed files with 9 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
<nb-card [size]="breakpoint.width >= 1600 ? 'large' : 'xlarge'">
|
<nb-card [size]="breakpoint.width >= breakpoints.xxxl ? 'large' : 'xlarge'">
|
||||||
<nb-tabset fullWidth>
|
<nb-tabset fullWidth>
|
||||||
<nb-tab tabTitle="Contacts">
|
<nb-tab tabTitle="Contacts">
|
||||||
<div class="contact" *ngFor="let c of contacts">
|
<div class="contact" *ngFor="let c of contacts">
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { NbThemeService, NbMediaBreakpoint } from '@nebular/theme';
|
import { NbThemeService, NbMediaBreakpoint, NbMediaBreakpointsService } from '@nebular/theme';
|
||||||
|
|
||||||
import { UserService } from '../../../@core/data/users.service';
|
import { UserService } from '../../../@core/data/users.service';
|
||||||
|
|
||||||
|
|
@ -13,8 +13,13 @@ export class ContactsComponent implements OnInit {
|
||||||
contacts: any[];
|
contacts: any[];
|
||||||
recent: any[];
|
recent: any[];
|
||||||
breakpoint: NbMediaBreakpoint;
|
breakpoint: NbMediaBreakpoint;
|
||||||
|
breakpoints: any;
|
||||||
|
|
||||||
constructor(private userService: UserService, private themeService: NbThemeService) {
|
constructor(private userService: UserService,
|
||||||
|
private themeService: NbThemeService,
|
||||||
|
private breakpointService: NbMediaBreakpointsService) {
|
||||||
|
|
||||||
|
this.breakpoints = breakpointService.getBreakpointsMap();
|
||||||
themeService.onMediaQueryChange()
|
themeService.onMediaQueryChange()
|
||||||
.subscribe(([oldValue, newValue]) => {
|
.subscribe(([oldValue, newValue]) => {
|
||||||
this.breakpoint = newValue;
|
this.breakpoint = newValue;
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import { ElectricityComponent } from './electricity/electricity.component';
|
||||||
import { ElectricityChartComponent } from './electricity/electricity-chart/electricity-chart.component';
|
import { ElectricityChartComponent } from './electricity/electricity-chart/electricity-chart.component';
|
||||||
import { WeatherComponent } from './weather/weather.component';
|
import { WeatherComponent } from './weather/weather.component';
|
||||||
import { SolarComponent } from './solar/solar.component';
|
import { SolarComponent } from './solar/solar.component';
|
||||||
import { PlayerComponent } from './player/player.component';
|
import { PlayerComponent } from './rooms/player/player.component';
|
||||||
import { TrafficComponent } from './traffic/traffic.component';
|
import { TrafficComponent } from './traffic/traffic.component';
|
||||||
import { TrafficChartComponent } from './traffic/traffic-chart.component';
|
import { TrafficChartComponent } from './traffic/traffic-chart.component';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue