Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize mailing preview modal #26273

Merged
merged 1 commit into from
May 19, 2023

Conversation

larssandergreen
Copy link
Contributor

Before

Short and wide, not ideal for mailings, height: auto doesn't seem to work.
image

After

Tall with width of 800px, which should be enough for any mailing.
image

Technical Details

Not sure why height: auto doesn't work here, but I don't see the harm in making the height 90% as I think most mailings are going to fill that. Also tried maxWidth: 800 instead to avoid a fixed width in pixels, but that did not work and also is less than ideal as it would prevent users from resizing wider themselves. If there's a better way though, I'd love to hear it.

Comments

I think this is currently only used on A/B tests.

@civibot
Copy link

civibot bot commented May 19, 2023

(Standard links)

@civibot civibot bot added the master label May 19, 2023
@colemanw
Copy link
Member

Seems like a useful change :)

@colemanw colemanw merged commit 54c4a16 into civicrm:master May 19, 2023
@larssandergreen larssandergreen deleted the Resize-mailing-preview branch May 24, 2023 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants