Browse Source

UI: Mobile screen size improvements

pull/8247/head
Igor Kulikov 4 years ago
parent
commit
d051a18e86
  1. 2
      ui-ngx/src/app/modules/home/components/router-tabs.component.html
  2. 2
      ui-ngx/src/app/modules/home/menu/menu-toggle.component.html
  3. 2
      ui-ngx/src/app/modules/home/menu/menu-toggle.component.scss
  4. 3
      ui-ngx/src/app/modules/home/menu/menu-toggle.component.ts
  5. 5
      ui-ngx/src/app/modules/home/pages/admin/general-settings.component.scss

2
ui-ngx/src/app/modules/home/components/router-tabs.component.html

@ -15,7 +15,7 @@
limitations under the License.
-->
<div fxFlex fxLayout="column">
<div fxFlex fxLayout="column" style="width: 100%;">
<nav mat-tab-nav-bar backgroundColor="primary" class="tb-router-tabs">
<a *ngFor="let tab of tabs$ | async"
routerLink="{{tab.path}}"

2
ui-ngx/src/app/modules/home/menu/menu-toggle.component.html

@ -15,7 +15,7 @@
limitations under the License.
-->
<a mat-button class="tb-button-toggle" (click)="toggleSection()">
<a mat-button class="tb-button-toggle" (click)="toggleSection($event)">
<mat-icon *ngIf="!section.isMdiIcon && section.icon !== null" class="tb-mat-18">{{section.icon}}</mat-icon>
<mat-icon *ngIf="section.isMdiIcon && section.icon !== null" [svgIcon]="section.icon" class="tb-mat-18"></mat-icon>
<span>{{section.name | translate}}</span>

2
ui-ngx/src/app/modules/home/menu/menu-toggle.component.scss

@ -32,7 +32,7 @@
z-index: 1;
overflow: hidden;
transition: .75s cubic-bezier(.35, 0, .25, 1);
transition: .45s cubic-bezier(.35, 0, .25, 1);
transition-property: height;

3
ui-ngx/src/app/modules/home/menu/menu-toggle.component.ts

@ -46,7 +46,8 @@ export class MenuToggleComponent implements OnInit {
}
}
toggleSection() {
toggleSection(event: MouseEvent) {
event.stopPropagation();
this.section.opened = !this.section.opened;
this.store.dispatch(new ActionPreferencesUpdateOpenedMenuSection({path: this.section.path, opened: this.section.opened}));
}

5
ui-ngx/src/app/modules/home/pages/admin/general-settings.component.scss

@ -14,5 +14,10 @@
* limitations under the License.
*/
:host {
}
:host ::ng-deep {
.mat-checkbox-layout {
white-space: normal;
}
}

Loading…
Cancel
Save