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 Columns to utilize Sections (tables) #19

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

Conversation

kdaisho
Copy link

@kdaisho kdaisho commented Jul 7, 2023

This PR aims to remove empty tables from the email examples, specifically the Airbnb Review Notification and Apple Receipt templates.

Through my investigation, I discovered that the Section component's opening tag must be followed by the Column component, which renders the <td> tag. If this sequence is not maintained, the Section components can result in empty tables throughout the templates, causing components that should be wrapped by tables to appear on their own.

@vercel
Copy link

vercel bot commented Jul 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-email ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 7, 2023 2:01am

<Text style={footer}>Airbnb, Inc., 888 Brannan St, San Francisco, CA 94103</Text>
<Link href="https://airbnb.com" style={reportLink}>Report unsafe behavior</Link>
</Container>
<Column>
Copy link
Author

Choose a reason for hiding this comment

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

It looks like I've changed a lot, but most of them are due to new indentations. What I actually did is adding <Column> after <Section>

2125 Chestnut St
<br />
San Francisco, CA 94123
<Column>
Copy link
Author

Choose a reason for hiding this comment

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

The same goes here. All these new lines are caused by increased indentations. What I did is wrapping things with <Column>.

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.

1 participant