mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
proper collapse button
This commit is contained in:
committed by
Yasa-Nataliya
parent
396e1e573f
commit
ce2e8cdaea
@@ -23,7 +23,7 @@
|
|||||||
#acaExpansionPanel="acaExpansionPanel"
|
#acaExpansionPanel="acaExpansionPanel"
|
||||||
[@.disabled]="true"
|
[@.disabled]="true"
|
||||||
>
|
>
|
||||||
<mat-expansion-panel-header expandedHeight="48x" collapsedHeight="48px" role="group">
|
<mat-expansion-panel-header expandedHeight="48px" collapsedHeight="48px" role="group">
|
||||||
<mat-panel-title>
|
<mat-panel-title>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<button
|
<button
|
||||||
|
@@ -1,8 +1,11 @@
|
|||||||
<div class="aca-content-container">
|
<div class="aca-content-container">
|
||||||
<div class="aca-content-header">
|
<div class="aca-content-header">
|
||||||
<div *ngIf="(appNavNarMode$ | async) === 'collapsed'" class="aca-menu-icon" (click)="toggleClick()" (keypress)="toggleClick()">
|
<button *ngIf="(appNavNarMode$ | async) === 'collapsed'"
|
||||||
<mat-icon title="{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}">menu</mat-icon>
|
mat-icon-button
|
||||||
</div>
|
(click)="toggleClick()"
|
||||||
|
title="{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}">
|
||||||
|
<mat-icon>menu</mat-icon>
|
||||||
|
</button>
|
||||||
<ng-content select="aca-page-layout-header"></ng-content>
|
<ng-content select="aca-page-layout-header"></ng-content>
|
||||||
</div>
|
</div>
|
||||||
<ng-content select="aca-page-layout-error" *ngIf="hasError"></ng-content>
|
<ng-content select="aca-page-layout-error" *ngIf="hasError"></ng-content>
|
||||||
|
@@ -22,13 +22,6 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aca-menu-icon {
|
|
||||||
cursor: pointer;
|
|
||||||
transform: scale(1.1);
|
|
||||||
padding: 32px 12px 32px 0;
|
|
||||||
margin-top: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.aca-page-layout-header {
|
.aca-page-layout-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@@ -31,9 +31,10 @@ import { PageLayoutComponent } from './page-layout.component';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { MatIconModule } from '@angular/material/icon';
|
import { MatIconModule } from '@angular/material/icon';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [CommonModule, MatIconModule, TranslateModule],
|
imports: [CommonModule, MatIconModule, TranslateModule, MatButtonModule],
|
||||||
declarations: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent],
|
declarations: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent],
|
||||||
exports: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent]
|
exports: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent]
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user