Skip to content

fix: stabilize table column widths during streaming#472

Open
callmeYe wants to merge 1 commit intovercel:mainfrom
callmeYe:codex/fix-table-layout-jitter
Open

fix: stabilize table column widths during streaming#472
callmeYe wants to merge 1 commit intovercel:mainfrom
callmeYe:codex/fix-table-layout-jitter

Conversation

@callmeYe
Copy link

@callmeYe callmeYe commented Mar 20, 2026

Description

Fix table column width jitter during streaming by applying a fixed table layout to Streamdown tables.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Refactoring (no functional changes)

Related Issues

Fixes #
Closes #
Related to #

Changes Made

  • Apply table-fixed to the standard table renderer so column widths remain stable while table content streams in
  • Apply table-fixed to the fullscreen table renderer for consistent behavior there as well
  • Add regression tests covering both the standard table path and the fullscreen table path
  • Add a patch changeset for the fix

Testing

  • All existing tests pass
  • Added new tests for the changes
  • Manually tested the changes

Test Coverage

Verified locally with:

  • corepack pnpm --filter streamdown exec vitest run __tests__/components.test.tsx __tests__/table-fullscreen.test.tsx
  • corepack pnpm --filter streamdown build

Screenshots/Demos

N/A

Checklist

  • My code follows the project's code style
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have created a changeset (pnpm changeset)

Changeset

  • I have created a changeset for these changes

Additional Notes

This PR is intentionally scoped to the layout-stability fix only.

@vercel
Copy link
Contributor

vercel bot commented Mar 20, 2026

@callmeYe is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

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