[GH-ISSUE #120] The content is always aligned to center #272

Closed
opened 2026-03-15 02:00:33 +03:00 by kerem · 5 comments
Owner

Originally created by @javidabd on GitHub (Jan 28, 2025).
Original GitHub issue: https://github.com/arikchakma/maily.to/issues/120

Great work!

I started testing this editor, and it has basically everything I need. Thank you for your hard work!

The only issue I'm experiencing is that the content in the email clients is always centered. Is this intentional?

Here is the HTML I get after rendering:

<table align="center" width="100%"> 

// content

</table>

Is there a way to disable this behavior and ensure it respects how we write the content in the editor?

Originally created by @javidabd on GitHub (Jan 28, 2025). Original GitHub issue: https://github.com/arikchakma/maily.to/issues/120 Great work! I started testing this editor, and it has basically everything I need. Thank you for your hard work! The only issue I'm experiencing is that the content in the email clients is always centered. Is this intentional? Here is the HTML I get after rendering: ``` <table align="center" width="100%"> // content </table> ``` Is there a way to disable this behavior and ensure it respects how we write the content in the editor?
kerem closed this issue 2026-03-15 02:00:38 +03:00
Author
Owner

@arikchakma commented on GitHub (Jan 28, 2025):

I mean, what is the issue? Isn't it rendering as you see in the editor? if not, can you please share a screenshot if possible.

<!-- gh-comment-id:2618613306 --> @arikchakma commented on GitHub (Jan 28, 2025): I mean, what is the issue? Isn't it rendering as you see in the editor? if not, can you please share a screenshot if possible.
Author
Owner

@javidabd commented on GitHub (Jan 28, 2025):

Thank you for the quick response. Here are the screenshots:

The Editor
Image

The email that was sent to Gmail (it's always aligned to the center)

Image
<!-- gh-comment-id:2618681498 --> @javidabd commented on GitHub (Jan 28, 2025): Thank you for the quick response. Here are the screenshots: The Editor <img width="1087" alt="Image" src="https://github.com/user-attachments/assets/92460c65-97e2-4aac-97fd-d0e822c67c51" /> The email that was sent to Gmail (it's always aligned to the center) <img width="1112" alt="Image" src="https://github.com/user-attachments/assets/93e0d7e0-49d9-4280-b16e-cc7040c3f8c5" />
Author
Owner

@arikchakma commented on GitHub (Jan 28, 2025):

It's intentional btw. The max-width of the email is 600px, and it's centered horizontally. Currently, we don't allow to customize that.

<!-- gh-comment-id:2618697284 --> @arikchakma commented on GitHub (Jan 28, 2025): It's intentional btw. The max-width of the email is 600px, and it's centered horizontally. Currently, we don't allow to customize that.
Author
Owner

@javidabd commented on GitHub (Jan 28, 2025):

Understood. May I ask why is it not planned or what was the motivation behind this decision? Because it's kinda important not always to be centered.

Thank you for taking the time to answer my questions!

<!-- gh-comment-id:2618771847 --> @javidabd commented on GitHub (Jan 28, 2025): Understood. May I ask why is it not planned or what was the motivation behind this decision? Because it's kinda important not always to be centered. Thank you for taking the time to answer my questions!
Author
Owner

@arikchakma commented on GitHub (Jan 28, 2025):

I wanted to keep a borderline in customization and opinionated. Almost all email editors do a similar thing because it looks good. But for sure in future we can implement this.

<!-- gh-comment-id:2619306403 --> @arikchakma commented on GitHub (Jan 28, 2025): I wanted to keep a borderline in customization and opinionated. Almost all email editors do a similar thing because it looks good. But for sure in future we can implement this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/maily.to#272
No description provided.