mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use an iframe for recent emails to avoid them breaking CSS of the app
This commit is contained in:
parent
8d5cf50110
commit
ce364004ac
1 changed files with 9 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue