improved pdftron text display
This commit is contained in:
parent
0621004867
commit
a813fe8b8c
@ -57,7 +57,7 @@
|
||||
</button>
|
||||
<div class="vertical-line"></div>
|
||||
<redaction-file-actions (actionPerformed)="fileActionPerformed($event)" *ngIf="viewReady"></redaction-file-actions>
|
||||
<button [routerLink]="['/ui/projects/' + appStateService.activeProjectId]" mat-icon-button>
|
||||
<button [routerLink]="['/ui/projects/' + appStateService.activeProjectId]" mat-icon-button [matTooltip]="'common.close' | translate">
|
||||
<mat-icon svgIcon="red:close"></mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@ -78,7 +78,8 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnChanges {
|
||||
{
|
||||
licenseKey: environment.licenseKey ? atob(environment.licenseKey) : null,
|
||||
isReadOnly: true,
|
||||
path: '/assets/wv-resources'
|
||||
path: '/assets/wv-resources',
|
||||
css: '/assets/pdftron/stylesheet.css'
|
||||
},
|
||||
this.viewer.nativeElement
|
||||
).then((instance) => {
|
||||
@ -209,9 +210,9 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnChanges {
|
||||
const idx = items.findIndex((el) => el['dataElement'] === 'searchButton');
|
||||
const title = document.createElement('div');
|
||||
title.innerText = this.fileStatus.filename;
|
||||
title.style.cssText = 'text-align: right; font-size: 11px; color: #283241; line-height: 14px;';
|
||||
items.splice(idx, 0, {
|
||||
type: 'customElement',
|
||||
dataElement: 'header-text',
|
||||
render: () => title
|
||||
});
|
||||
header.update(items);
|
||||
|
||||
@ -28,23 +28,12 @@ export class FileActionService {
|
||||
}
|
||||
|
||||
public assignProjectReviewer(file?: FileStatus, callback?: Function) {
|
||||
if (this._permissionsService.isManagerAndOwner()) {
|
||||
this._dialogService.openAssignFileReviewerDialog(file ? file : this._appStateService.activeFile, async () => {
|
||||
await this._appStateService.reloadActiveProjectFiles();
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this._statusControllerService
|
||||
.assignProjectOwner(this._appStateService.activeProjectId, file ? file.fileId : this._appStateService.activeFileId, this._userService.userId)
|
||||
.subscribe(async () => {
|
||||
await this._appStateService.reloadActiveProjectFiles();
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
}
|
||||
this._dialogService.openAssignFileReviewerDialog(file ? file : this._appStateService.activeFile, async () => {
|
||||
await this._appStateService.reloadActiveProjectFiles();
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public assignToMe(file?: FileStatus, callback?: Function) {
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
>
|
||||
<mat-icon svgIcon="red:upload"></mat-icon>
|
||||
</button>
|
||||
<button [routerLink]="['/ui/projects/']" mat-icon-button>
|
||||
<button [routerLink]="['/ui/projects/']" mat-icon-button [matTooltip]="'common.close' | translate">
|
||||
<mat-icon svgIcon="red:close"></mat-icon>
|
||||
</button>
|
||||
|
||||
|
||||
@ -24,6 +24,7 @@
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
"close": "Close View",
|
||||
"dialog": {
|
||||
"close": "Close Dialog"
|
||||
},
|
||||
|
||||
14
apps/red-ui/src/assets/pdftron/stylesheet.css
Normal file
14
apps/red-ui/src/assets/pdftron/stylesheet.css
Normal file
@ -0,0 +1,14 @@
|
||||
div[data-element='header-text'] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div[data-element='header-text'] > div {
|
||||
text-align: right;
|
||||
font-size: 11px;
|
||||
color: #283241;
|
||||
line-height: 14px;
|
||||
font-weight: bold;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user