fix: apply dark mode to email content iframe

This commit is contained in:
Shariq Ansari 2025-01-03 19:04:14 +05:30
parent 04745fb5e7
commit 7ec08140cf

View File

@ -228,6 +228,9 @@ watch(iframeRef, (iframe) => {
iframe.contentWindow.document.querySelector('.email-content')
let parent = emailContent.closest('html')
let theme = document.documentElement.getAttribute('data-theme')
parent.setAttribute('data-theme', theme)
iframe.style.height = parent.offsetHeight + 1 + 'px'
let replyCollapsers = emailContent.querySelectorAll('.replyCollapser')