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

Add email preview text #130

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dariomrk
Copy link

  • Add preview text control to global styles sidebar
  • Add preview text to EmailLayout

<Fragment>
{props.previewText && (
<div
style={{ display: 'none', maxHeight: '0px', overflow: 'hidden', 'mso-hide': 'all' } as React.CSSProperties}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[disclaimer: not a maintainer]

I don't think you don't need to add this mso-hide to the Editor as it won't be "visible", it's for Outlook only and it's throwing this:

image

@dariomrk dariomrk force-pushed the feat/custom-email-preview-text branch from 934177a to ef69472 Compare October 23, 2024 11:20
@dariomrk dariomrk force-pushed the feat/custom-email-preview-text branch from ef69472 to b808d91 Compare October 23, 2024 11:23
@irtaza9
Copy link

irtaza9 commented Oct 30, 2024

@dariomrk can you please explain about the working of preview text? I debugged it and it is hidden by default.

image

@dariomrk
Copy link
Author

@irtaza9 Please check out the related issue thread.
There's plenty of info about the feature and how it is expected to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants