Browse Source

UI: Change dashboard add widget panel width

pull/9571/head
Vladyslav_Prykhodko 3 years ago
parent
commit
6360becf59
  1. 14
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.scss
  2. 4
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.ts

14
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.scss

@ -125,7 +125,11 @@ div.tb-dashboard-page {
mat-drawer-container.tb-dashboard-layouts {
width: 100%;
&.tb-shrinked {
width: 40%;
width: max(40%, calc(100% - 956px));
@media screen and (min-width: 2000px) {
width: max(40%, calc(100% - 1192px));
}
}
}
@ -135,11 +139,15 @@ div.tb-dashboard-page {
}
@media #{$mat-gt-md} {
width: 75% !important;
width: min(75%, 956px) !important;
}
@media #{$mat-gt-xl} {
width: 60% !important;
width: min(60%, 956px) !important;
}
@media screen and (min-width: 2000px) {
width: min(60%, 1192px) !important;
}
}
}

4
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.ts

@ -142,8 +142,8 @@ export class DashboardWidgetSelectComponent implements OnInit {
columns: 2,
breakpoints: {
'screen and (min-width: 2000px)': 5,
'screen and (min-width: 1280px)': 4,
'screen and (min-width: 600px)': 3
'screen and (min-width: 721px)': 4,
'screen and (min-width: 485px)': 3
}
};

Loading…
Cancel
Save