Skip to content

Commit

Permalink
[ACA-4698] Refactor the parent of aca-info-drawer to style sidebar wh…
Browse files Browse the repository at this point in the history
…erever present. (#3192)

* [ACA-4698] Refactor the parent of aca-info-drawer to style sidebar wherever it is present

* declared sidebar class once
  • Loading branch information
arohilaGL committed May 26, 2023
1 parent 1a942e6 commit bf1fa75
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</adf-pagination>
</div>

<div class="sidebar" *ngIf="infoDrawerOpened$ | async">
<div class="aca-sidebar" *ngIf="infoDrawerOpened$ | async">
<aca-info-drawer [node]="selection.last"></aca-info-drawer>
</div>
</aca-page-layout-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<adf-pagination acaPagination [target]="documentList"> </adf-pagination>
</div>

<div class="sidebar" *ngIf="infoDrawerOpened$ | async">
<div class="aca-sidebar" *ngIf="infoDrawerOpened$ | async">
<aca-info-drawer [node]="selection.last"></aca-info-drawer>
</div>
</aca-page-layout-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
[mode]="'indeterminate'">
</mat-progress-spinner>

<div class="sidebar" *ngIf="infoDrawerOpened$ | async">
<div class="aca-sidebar" *ngIf="infoDrawerOpened$ | async">
<aca-info-drawer [node]="selection.last"></aca-info-drawer>
</div>
</aca-page-layout-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<adf-pagination acaPagination [target]="documentList"> </adf-pagination>
</div>

<div class="sidebar" *ngIf="infoDrawerOpened$ | async">
<div class="aca-sidebar" *ngIf="infoDrawerOpened$ | async">
<aca-info-drawer [node]="$any(selection).library"></aca-info-drawer>
</div>
</aca-page-layout-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<adf-pagination acaPagination [target]="documentList"> </adf-pagination>
</div>

<div class="sidebar" *ngIf="infoDrawerOpened$ | async">
<div class="aca-sidebar" *ngIf="infoDrawerOpened$ | async">
<aca-info-drawer [node]="selection.last"></aca-info-drawer>
</div>
</aca-page-layout-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
</div>
</div>
</div>
<div class="sidebar" *ngIf="infoDrawerOpened$ | async">
<div class="aca-sidebar" *ngIf="infoDrawerOpened$ | async">
<aca-info-drawer [node]="selection.last"></aca-info-drawer>
</div>
</aca-page-layout-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
</adf-viewer-toolbar>
</adf-alfresco-viewer>
<ng-template #infoDrawerPanel>
<div class="sidebar">
<div class="aca-sidebar">
<aca-info-drawer [node]="selection.last"></aca-info-drawer>
</div>
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<adf-pagination acaPagination [target]="documentList"> </adf-pagination>
</div>

<div class="sidebar" *ngIf="infoDrawerOpened$ | async">
<div class="aca-sidebar" *ngIf="infoDrawerOpened$ | async">
<aca-info-drawer [node]="selection.last"></aca-info-drawer>
</div>
</aca-page-layout-content>
Expand Down
8 changes: 8 additions & 0 deletions projects/aca-content/src/lib/ui/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,11 @@ ng-component {
height: 100vh;
}
}

.aca-sidebar {
display: block;
height: 100%;
overflow-y: scroll;
max-width: 350px;
width: 350px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@
}
}

.sidebar {
display: block;
height: 100%;
overflow-y: scroll;
max-width: 350px;
width: 350px;
}

.aca-page-layout-content {
@include flex-row;
}
Expand Down

0 comments on commit bf1fa75

Please sign in to comment.