Use an iframe for recent emails to avoid them breaking CSS of the app

This commit is contained in:
Jackson Harper
2023-06-16 20:08:44 +08:00
parent 8d5cf50110
commit ce364004ac

View File

@ -133,9 +133,16 @@ const ViewRecentEmailModal = (
height: '100%',
fontSize: '12px',
overflowY: 'scroll',
iframe: {
width: '100%',
height: '100%',
display: 'block',
border: 'none',
},
}}
dangerouslySetInnerHTML={{ __html: props.recentEmail.html }}
></Box>
>
<iframe srcDoc={props.recentEmail.html}></iframe>
</Box>
)}
</VStack>
</ModalContent>