Repository navigation
Conversation
The preview iframe was 100vw wide and 100vh tall. Inside the view page or the view modal, which are narrower than the window, a centred email lands past the card's right edge, so the Preview tab shows only the email's background and looks empty unless you scroll sideways. The frame now takes the container's width and a fixed share of the viewport's height.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Preview tab on a mail renders its iframe at
width: 100vw; height: 100vh. The view page and the view modal are narrower than the window, so the frame overflows its card, and an email whose content is centred (as most transactional templates are) lands to the right of the visible area. The tab then shows only the email's background colour and looks empty; the content is only reachable by scrolling the card sideways, which nothing hints at.Change
width: 100%of its container and its wrapper a height of75vh, both inline so they do not depend on the host panel compiling the package's Tailwind classes.referrerpolicyandsrcdocescaping are unchanged.Before and after, the same email in a 640px card on a 1920px window: before shows the grey background only, after shows the email.