fix: apply dark mode to email content iframe
This commit is contained in:
parent
04745fb5e7
commit
7ec08140cf
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user