Skip to content

fix(markdown): implement column-first layout for consistent table cell widths#408

Merged
bra1nDump merged 1 commit intoslopus:mainfrom
hyacz:fix/markdown-table-layout
Jan 22, 2026
Merged

fix(markdown): implement column-first layout for consistent table cell widths#408
bra1nDump merged 1 commit intoslopus:mainfrom
hyacz:fix/markdown-table-layout

Conversation

@hyacz
Copy link
Copy Markdown
Contributor

@hyacz hyacz commented Jan 21, 2026

Fixes #294 - Changed table rendering from row-first to column-first layout to ensure cells in the same column have consistent widths.

Changes:

  • Render each column as a vertical container (flip axis approach)
  • Columns contain their header cell and all data cells
  • Column width determined by widest cell content naturally
  • Updated styles: tableContent (row), tableColumn, tableCell borders

This approach uses Flexbox's natural behavior instead of pre-calculating widths or requiring multiple render passes.

Before After
before after

Generated with Claude Code via Happy

…l widths

Fixes slopus#294 - Changed table rendering from row-first to column-first layout
to ensure cells in the same column have consistent widths.

Changes:
- Render each column as a vertical container (flip axis approach)
- Columns contain their header cell and all data cells
- Column width determined by widest cell content naturally
- Updated styles: tableContent (row), tableColumn, tableCell borders

This approach uses Flexbox's natural behavior instead of pre-calculating
widths or requiring multiple render passes.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
@hyacz hyacz force-pushed the fix/markdown-table-layout branch from 929d073 to 09d4e21 Compare January 22, 2026 07:59
@hyacz
Copy link
Copy Markdown
Contributor Author

hyacz commented Jan 22, 2026

The PR has been modified to fit the structure of the mono-repo.

@bra1nDump bra1nDump merged commit 8691991 into slopus:main Jan 22, 2026
1 check passed
@bra1nDump
Copy link
Copy Markdown
Contributor

thank you!

@hyacz hyacz deleted the fix/markdown-table-layout branch January 23, 2026 11:04
JoeLuker pushed a commit to JoeLuker/happy that referenced this pull request Feb 1, 2026
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.

Markdown table cells don't resize together on mobile

2 participants