removed header
This commit is contained in:
parent
8e5884f0a0
commit
e957545332
@ -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);
|
||||
|
||||
@ -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;*/
|
||||
/* }*/
|
||||
/*}*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user