[GH-ISSUE #193] Tiny column spacing bug #298

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

Originally created by @bernaferrari on GitHub (Apr 29, 2025).
Original GitHub issue: https://github.com/arikchakma/maily.to/issues/193

In maily.tsx inside adjustColumnsContent, this
const gap = node.attrs?.gap || DEFAULT_COLUMNS_GAP;
should become
const gap = node.attrs?.gap ?? DEFAULT_COLUMNS_GAP;

Because when gap is zero, column is being exported with padding 4 (gap = 8/2) due to 0 || 8 = 8.

Originally created by @bernaferrari on GitHub (Apr 29, 2025). Original GitHub issue: https://github.com/arikchakma/maily.to/issues/193 In maily.tsx inside `adjustColumnsContent`, this `const gap = node.attrs?.gap || DEFAULT_COLUMNS_GAP;` should become `const gap = node.attrs?.gap ?? DEFAULT_COLUMNS_GAP;` Because when gap is zero, column is being exported with padding 4 (gap = 8/2) due to 0 || 8 = 8.
kerem closed this issue 2026-03-15 02:05:11 +03:00
Author
Owner

@arikchakma commented on GitHub (Apr 29, 2025):

Ah, okay, good catch.

<!-- gh-comment-id:2839845009 --> @arikchakma commented on GitHub (Apr 29, 2025): Ah, okay, good catch.
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#298
No description provided.