pdf搜索修改
This commit is contained in:
parent
f5ae85453c
commit
add19a94aa
|
|
@ -335,10 +335,6 @@ export default {
|
||||||
if (container.dataset.status !== 'rendered') {
|
if (container.dataset.status !== 'rendered') {
|
||||||
container.classList.add('prefetched')
|
container.classList.add('prefetched')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.$refs.pdfWrapper && !this.$refs.pdfWrapper.style.minWidth) {
|
|
||||||
this.$refs.pdfWrapper.style.minWidth = `${Math.ceil(viewport.width)}px`
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
async ensurePageCached(pageNumber) {
|
async ensurePageCached(pageNumber) {
|
||||||
|
|
@ -1538,7 +1534,7 @@ export default {
|
||||||
overscroll-behavior: contain;
|
overscroll-behavior: contain;
|
||||||
scrollbar-gutter: stable both-edges;
|
scrollbar-gutter: stable both-edges;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
overflow-x: hidden;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pdf-page {
|
.pdf-page {
|
||||||
|
|
@ -1546,11 +1542,11 @@ export default {
|
||||||
margin: 0px auto 10px !important;
|
margin: 0px auto 10px !important;
|
||||||
box-shadow: 0 10px 30px rgba(25, 64, 158, 0.12);
|
box-shadow: 0 10px 30px rgba(25, 64, 158, 0.12);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: visible;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
display: block;
|
display: block;
|
||||||
will-change: transform, opacity;
|
will-change: transform, opacity;
|
||||||
max-width: 100%;
|
min-width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pdf-page:first-of-type::before,
|
.pdf-page:first-of-type::before,
|
||||||
|
|
@ -1637,7 +1633,6 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.pdf-canvas {
|
.pdf-canvas {
|
||||||
width: 100%;
|
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue