Skip to content

Commit 03dd3bb

Browse files
committed
feat: update iframe resizer
Signed-off-by: Grigory Vodyanov <[email protected]>
1 parent 9559fb5 commit 03dd3bb

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"dompurify": "^3.2.3",
6262
"html-to-text": "^9.0.5",
6363
"ical.js": "^1.5.0",
64-
"iframe-resizer": "^4.4.5",
64+
"iframe-resizer": "^5.3.3",
6565
"js-base64": "^3.7.7",
6666
"jstz": "^2.1.1",
6767
"lodash": "^4.17.21",

src/components/MessageHTMLBody.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ export default {
9999
mounted() {
100100
iframeResizer({
101101
log: false,
102-
heightCalculationMethod: 'taggedElement',
103-
scrolling: true,
102+
scrolling: false,
104103
}, this.$refs.iframe)
105104
},
106105
beforeDestroy() {

src/components/Thread.vue

+15-3
Original file line numberDiff line numberDiff line change
@@ -583,12 +583,24 @@ export default {
583583
.envelope {
584584
border: none !important;
585585
}
586-
* {
587-
page-break-inside: avoid;
588-
}
589586
.v-popper__popper {
590587
display: none !important;
591588
}
589+
iframe {
590+
display: block !important;
591+
visibility: visible !important;
592+
position: relative !important;
593+
width: 100% !important;
594+
}
595+
596+
iframe body {
597+
display: block !important;
598+
}
599+
600+
@page {
601+
size: auto;
602+
margin: 10mm;
603+
}
592604
}
593605

594606
.message-source {

0 commit comments

Comments
 (0)