Fix embed-pdf short code not rendering pdf file (#844)

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
Emruz Hossain 2023-12-08 22:04:58 +06:00 committed by GitHub
parent bb9fec2e5d
commit d5fb8e5313
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 7 deletions

View file

@ -38,7 +38,7 @@ class PDFViewer {
this.loadingWrapper = el.getElementsByClassName('loading-wrapper')[0]
this.next = el.getElementsByClassName('next')[0]
this.prev = el.getElementsByClassName('prev')[0]
this.pageNum = el.getElementsByClassName('page-num')[0]
this.curPage = el.getElementsByClassName('page-num')[0]
this.pageCount = el.getElementsByClassName('page-count')[0]
// context
@ -121,7 +121,7 @@ class PDFViewer {
this.pageNumPending = null
}
// Update page counters
this.pageNum.textContent = num
this.curPage.textContent = num
}
/**

View file

@ -8,9 +8,16 @@
}
.paginator {
display: none;
display: flex!important;
width: 100% !important;
text-align: center;
margin-bottom: 10px;
margin-bottom: 0.2rem !important;
justify-content: space-between;
.page-number-indicator {
margin-left: auto;
margin-right: auto;
}
}
.loading-wrapper {