diff --git a/apps/red-ui/src/app/screens/file/pdf-viewer/pdf-viewer.component.ts b/apps/red-ui/src/app/screens/file/pdf-viewer/pdf-viewer.component.ts index 347119908..4798e6de8 100644 --- a/apps/red-ui/src/app/screens/file/pdf-viewer/pdf-viewer.component.ts +++ b/apps/red-ui/src/app/screens/file/pdf-viewer/pdf-viewer.component.ts @@ -86,7 +86,6 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnChanges { this.instance = instance; this._disableElements(); this._configureTextPopup(); - this._configureHeader(); instance.annotManager.on('annotationSelected', (annotationList, action) => { if (action === 'deselected') { this.annotationSelected.emit(null); @@ -203,22 +202,6 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnChanges { }; } - private _configureHeader() { - this.instance.setToolbarGroup('toolbarGroup-View'); - this.instance.setHeaderItems((header) => { - const items = header.getItems(); - const idx = items.findIndex((el) => el['dataElement'] === 'searchButton'); - const title = document.createElement('div'); - title.innerText = this.fileStatus.filename; - items.splice(idx, 0, { - type: 'customElement', - dataElement: 'header-text', - render: () => title - }); - header.update(items); - }); - } - public selectAnnotation(annotation: AnnotationWrapper) { this.instance.annotManager.deselectAllAnnotations(); const annotationFromViewer = this.instance.annotManager.getAnnotationById(annotation.id); diff --git a/apps/red-ui/src/assets/pdftron/stylesheet.css b/apps/red-ui/src/assets/pdftron/stylesheet.css index eec7b3143..fee4da6ef 100644 --- a/apps/red-ui/src/assets/pdftron/stylesheet.css +++ b/apps/red-ui/src/assets/pdftron/stylesheet.css @@ -1,26 +1,26 @@ -.custom-ribbons-container { - flex: none; -} +/*.custom-ribbons-container {*/ +/* flex: none;*/ +/*}*/ -div[data-element='header-text'] { - flex: 1; - overflow: hidden; - margin: 0 258px 0 6px; -} +/*div[data-element='header-text'] {*/ +/* flex: 1;*/ +/* overflow: hidden;*/ +/* margin: 0 258px 0 6px;*/ +/*}*/ -div[data-element='header-text'] > div { - font-size: 11px; - color: #283241; - line-height: 14px; - font-weight: bold; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - text-align: center; -} +/*div[data-element='header-text'] > div {*/ +/* font-size: 11px;*/ +/* color: #283241;*/ +/* line-height: 14px;*/ +/* font-weight: bold;*/ +/* text-overflow: ellipsis;*/ +/* white-space: nowrap;*/ +/* overflow: hidden;*/ +/* text-align: center;*/ +/*}*/ -@media (max-width: 900px) { - div[data-element='header-text'] { - margin: 0 6px 0 6px; - } -} +/*@media (max-width: 900px) {*/ +/* div[data-element='header-text'] {*/ +/* margin: 0 6px 0 6px;*/ +/* }*/ +/*}*/