Skip to content

fix(markdown): use full width for previews - #189

Merged
cpojer merged 1 commit into
nkzw-tech:mainfrom
lifez:fix/full-width-markdown-preview
Oct 26, 2026
Merged

cpojer merged 1 commit into
nkzw-tech:mainfrom
lifez:fix/full-width-markdown-preview

Conversation

@lifez

@lifez lifez commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Why

Rendered Markdown stops at 920px even when the review pane is wider, leaving unused space on the right. Let the preview fill its container while preserving its existing padding.

What changed

  • Replace the 920px inline-size cap with inline-size: 100%.

Scope

Only the shared .codiff-markdown-preview CSS rule changes. Markdown rendering, diff generation, and the separate plan-document layout are unchanged.

Tradeoffs

This favors using the available review width over the previous bounded prose line length.

Blast Radius

The shared rule also applies to Markdown editing containers and source-description previews, so those can expand with their containers too.

Verification

  • Reproduced in Chrome before the change: a 1376px container rendered a 920px preview.
  • Rendered the production MarkdownDiffView component in Chrome after the change: previews fill 320px, 600px, 960px, and 1376px containers without horizontal overflow.
  • vp test core/__tests__/MarkdownDiffView.test.tsx: all 14 tests pass.
  • vp check --fix: passes.
  • vpr build: all 7 tasks succeed.
  • git diff --check: passes.

Evidence

Before After
CleanShot 2569-10-26 at 14 27 27 CleanShot 2569-10-26 at 14 17 25

@cpojer cpojer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@cpojer
cpojer merged commit a8779b2 into nkzw-tech:main Oct 26, 2026
@lifez
lifez deleted the fix/full-width-markdown-preview branch October 26, 2026 07:32
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.

2 participants