[GH-ISSUE #195] Wrong margin for bulletList #303

Closed
opened 2026-03-15 02:05:27 +03:00 by kerem · 1 comment
Owner

Originally created by @bernaferrari on GitHub (May 1, 2025).
Original GitHub issue: https://github.com/arikchakma/maily.to/issues/195

github.com/arikchakma/maily.to@b3a6a29b4a/packages/render/src/maily.tsx (L957)

This should be:

      <Container
        style={{
          maxWidth: '100%',
          marginBottom: shouldRemoveBottomMargin ? '0' : '20px',
          marginTop: '0px',
        }}
      >
        <ul
          style={{
            paddingLeft: '26px',
            listStyleType: 'disc',
          }}
        >

The margin needs to be in container, not un ul, so that if there is a divider, the margin from divider compensates with the margin from bullet list. For example:

Preview (see how the divider margin doesn't touch the bullet list):
Image

Editor (see how bullet list is glued with divider margin):
Image

Originally created by @bernaferrari on GitHub (May 1, 2025). Original GitHub issue: https://github.com/arikchakma/maily.to/issues/195 https://github.com/arikchakma/maily.to/blob/b3a6a29b4ac40e3c7a838cc76549dd9f6e412944/packages/render/src/maily.tsx#L957 This should be: ```ts <Container style={{ maxWidth: '100%', marginBottom: shouldRemoveBottomMargin ? '0' : '20px', marginTop: '0px', }} > <ul style={{ paddingLeft: '26px', listStyleType: 'disc', }} > ``` The margin needs to be in container, not un ul, so that if there is a divider, the margin from divider compensates with the margin from bullet list. For example: Preview (see how the divider margin doesn't touch the bullet list): ![Image](https://github.com/user-attachments/assets/79073291-ef22-4567-a8cc-c3a0de61a711) Editor (see how bullet list is glued with divider margin): ![Image](https://github.com/user-attachments/assets/ea3a122e-57cc-4430-a73a-48c47faecd77)
kerem closed this issue 2026-03-15 02:05:32 +03:00
Author
Owner

@bernaferrari commented on GitHub (May 1, 2025):

Same on orderedList

<!-- gh-comment-id:2845628891 --> @bernaferrari commented on GitHub (May 1, 2025): Same on `orderedList`
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#303
No description provided.