Fix embed-pdf
short code not rendering pdf file (#844)
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
bb9fec2e5d
commit
d5fb8e5313
3 changed files with 18 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue