From 7ec08140cfeddf75adf41a7ca6110617a51fdc19 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 3 Jan 2025 19:04:14 +0530 Subject: [PATCH] fix: apply dark mode to email content iframe --- frontend/src/components/Activities/EmailContent.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/Activities/EmailContent.vue b/frontend/src/components/Activities/EmailContent.vue index d4466480a..a0d537245 100644 --- a/frontend/src/components/Activities/EmailContent.vue +++ b/frontend/src/components/Activities/EmailContent.vue @@ -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')