Skip to content

Commit

Permalink
fix(pdf viewer): menubar is broken (#1160)
Browse files Browse the repository at this point in the history
  • Loading branch information
domsteinbach committed Jul 25, 2023
1 parent b1f510e commit 22e99e5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
Expand Up @@ -20,7 +20,7 @@
>
</pdf-viewer>

<div class="toolbar">
<div>
<div class="action horizontal bottom">
<!-- caption -->
<span>
Expand Down Expand Up @@ -94,9 +94,6 @@

<!-- empty placeholders to center the zoom buttons -->
<span class="fill-remaining-space"></span>
<span class="empty-space"></span>
<span class="empty-space"></span>
<span class="empty-space"></span>

<!-- full screen button -->
<span>
Expand Down
Expand Up @@ -21,14 +21,12 @@ $osd-height: 460px;
}

.pdf-container {
color: $bright;
height: 90%;
height: 100%;
background-color: $dark;
border-radius: 8px 8px 0px 0px;

pdf-viewer {
position: inherit;
height: 100%;

::ng-deep .ng2-pdf-viewer-container {
height: 90%;
Expand Down
Expand Up @@ -73,9 +73,6 @@ export class DocumentComponent implements OnInit, AfterViewInit {

ngOnInit(): void {
this.fileType = this._getFileType(this.src.fileValue.filename);
if (this.fileType === 'pdf') {
this.elem = document.getElementsByClassName('pdf-viewer')[0];
}

this._rs
.getFileInfo(this.src.fileValue.fileUrl)
Expand All @@ -88,6 +85,9 @@ export class DocumentComponent implements OnInit, AfterViewInit {
}

ngAfterViewInit() {
if (this.fileType === 'pdf') {
this.elem = document.getElementsByClassName('pdf-viewer')[0];
}
this.loaded.emit(true);
}

Expand Down
1 change: 1 addition & 0 deletions apps/dsp-app/src/styles/_elements.scss
Expand Up @@ -327,6 +327,7 @@ a,
}

&.bottom {
background-color: inherit;
bottom: 0;
}
}
Expand Down

0 comments on commit 22e99e5

Please sign in to comment.