Fix pagination styling issues in documentlist and copy & move (#2252)

This commit is contained in:
Popovics András
2017-08-29 12:29:56 +01:00
committed by Mario Romano
parent e295a05a56
commit 8e3d84504a
4 changed files with 15 additions and 5 deletions

View File

@@ -48,6 +48,7 @@
<adf-pagination <adf-pagination
*ngIf="isPaginationEnabled()" *ngIf="isPaginationEnabled()"
class="adf-documentlist-pagination"
(changePageSize)="onChangePageSize($event)" (changePageSize)="onChangePageSize($event)"
(nextPage)="onNextPage($event)" (nextPage)="onNextPage($event)"
(prevPage)="onPrevPage($event)" (prevPage)="onPrevPage($event)"

View File

@@ -60,7 +60,7 @@
height: 100%; height: 100%;
} }
adf-empty-list-header >>>>div { adf-empty-list-header >>> div {
height: 32px; height: 32px;
opacity: 0.26 !important; opacity: 0.26 !important;
font-family: Muli, Helvetica, Arial, sans-serif; font-family: Muli, Helvetica, Arial, sans-serif;
@@ -69,3 +69,11 @@ adf-empty-list-header >>>>div {
letter-spacing: -1px; letter-spacing: -1px;
color: #000000; color: #000000;
} }
.adf-documentlist-pagination {
color: black;
.adf-pagination__block {
border-right: none;
}
}

View File

@@ -17,7 +17,7 @@
import { import {
AfterContentInit, Component, ContentChild, ElementRef, EventEmitter, HostListener, Input, NgZone, AfterContentInit, Component, ContentChild, ElementRef, EventEmitter, HostListener, Input, NgZone,
OnChanges, OnInit, Output, SimpleChanges, TemplateRef, ViewChild OnChanges, OnInit, Output, SimpleChanges, TemplateRef, ViewChild, ViewEncapsulation
} from '@angular/core'; } from '@angular/core';
import { MinimalNodeEntity, MinimalNodeEntryEntity, NodePaging, Pagination, PersonEntry } from 'alfresco-js-api'; import { MinimalNodeEntity, MinimalNodeEntryEntity, NodePaging, Pagination, PersonEntry } from 'alfresco-js-api';
import { AlfrescoApiService, DataColumnListComponent } from 'ng2-alfresco-core'; import { AlfrescoApiService, DataColumnListComponent } from 'ng2-alfresco-core';
@@ -33,8 +33,9 @@ declare var require: any;
@Component({ @Component({
selector: 'adf-document-list, alfresco-document-list', selector: 'adf-document-list, alfresco-document-list',
styleUrls: ['./document-list.component.css'], styleUrls: ['./document-list.component.scss'],
templateUrl: './document-list.component.html' templateUrl: './document-list.component.html',
encapsulation: ViewEncapsulation.None
}) })
export class DocumentListComponent implements OnInit, OnChanges, AfterContentInit { export class DocumentListComponent implements OnInit, OnChanges, AfterContentInit {

View File

@@ -92,7 +92,7 @@ export class NodeActionsService {
select: new EventEmitter<MinimalNodeEntryEntity[]>() select: new EventEmitter<MinimalNodeEntryEntity[]>()
}; };
this.dialog.open(ContentNodeSelectorComponent, { data, panelClass: 'adf-content-node-selector-dialog', width: '576px' }); this.dialog.open(ContentNodeSelectorComponent, { data, panelClass: 'adf-content-node-selector-dialog', width: '630px' });
data.select.subscribe((selections: MinimalNodeEntryEntity[]) => { data.select.subscribe((selections: MinimalNodeEntryEntity[]) => {
const selection = selections[0]; const selection = selections[0];