Skip to content

Commit df767cb

Browse files
committed
fix: minor scroll in email content
1 parent f1ede15 commit df767cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/src/components/EmailContent.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:srcdoc="htmlContent"
55
class="prose-f block h-screen max-h-[500px] w-full"
66
style="
7+
height: 40px;
78
mask-image: linear-gradient(
89
to bottom,
910
black calc(100% - 20px),
@@ -235,13 +236,13 @@ watch(iframeRef, (iframe) => {
235236
iframe.contentWindow.document.querySelector('.email-content')
236237
let parent = emailContent.closest('html')
237238
238-
iframe.style.height = parent.offsetHeight + 'px'
239+
iframe.style.height = parent.offsetHeight + 1 + 'px'
239240
240241
let replyCollapsers = emailContent.querySelectorAll('.replyCollapser')
241242
if (replyCollapsers.length) {
242243
replyCollapsers.forEach((replyCollapser) => {
243244
replyCollapser.addEventListener('change', () => {
244-
iframe.style.height = parent.offsetHeight + 'px'
245+
iframe.style.height = parent.offsetHeight + 1 + 'px'
245246
})
246247
})
247248
}

0 commit comments

Comments
 (0)