Skip to content

feat(desktop): loosen right-rail preview width caps (38rem → 72rem) - #40551

Closed
liuhao1024 wants to merge 1 commit into
NousResearch:mainfrom
liuhao1024:feat/loosen-preview-rail-width
Closed

liuhao1024 wants to merge 1 commit into
NousResearch:mainfrom
liuhao1024:feat/loosen-preview-rail-width

Conversation

@liuhao1024

Copy link
Copy Markdown
Contributor

Summary

Loosen the right-rail preview pane width caps so that wide content (code listings, tables, Mermaid diagrams) can use the full horizontal space available on large monitors.

Problem

The preview pane has tight upper bounds (max 38rem, intrinsic 32rem). On wide monitors (27" / 16:10), content wraps or scrolls horizontally even when the user drags the divider all the way out. This is especially visible with:

Changes

Constant Before After File
PREVIEW_RAIL_MAX_WIDTH 38rem 72rem preview.tsx
INTRINSIC clamp upper 32rem 64rem preview.tsx
Markdown container max-w-3xl (48rem) max-w-[64rem] preview-file.tsx

The default opening width is unchanged — the wider cap only takes effect when the user drags the divider outward.

Related

Closes #40494

Checklist

  • Only changed the 2 files mentioned in the issue
  • No test changes needed (constants not referenced in tests)
  • Follows conventional commit format

Widen the preview pane and markdown content area so that wide content
(code listings, tables, Mermaid gantt/sequence diagrams) can use the
full horizontal space available on large monitors instead of wrapping
at the previous 38rem cap.

- PREVIEW_RAIL_MAX_WIDTH: 38rem → 72rem
- INTRINSIC clamp upper bound: 32rem → 64rem
- MarkdownPreview container: max-w-3xl (48rem) → max-w-[64rem]

The default opening width is unchanged — the wider cap only takes
effect when the user drags the divider outward.

Closes NousResearch#40494

@alpindiay alpindiay left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review: PR #40551 -- Loosen right-rail preview width caps

Summary: Simple CSS constant change: PREVIEW_RAIL_MAX_WIDTH 38rem->72rem, intrinsic clamp upper bound 32rem->64rem, and markdown content max-w-3xl (48rem)->max-w-[64rem].

Findings:

[PASS] No security issues. Pure CSS/Tailwind constant changes.

[PASS] No logic errors. The relationship between outer rail max (72rem), intrinsic clamp upper (64rem), and inner content max (64rem) is coherent -- the intrinsic clamp provides a viewport-responsive range and the outer max is a hard guardrail.

[NOTE] No tests, but this is a visual-only constant change so not a blocker. PR title says '38rem -> 72rem' but the preview-file.tsx diff changes max-w-3xl (48rem) to max-w-[64rem] -- title slightly mischaracterizes that file.

[NOTE] max-w-[64rem] uses arbitrary value syntax. Consider a standard Tailwind token (e.g. max-w-7xl or adding a design token) for consistency.

Verdict: LGTM. Low-risk, straightforward change. Approve.

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have labels Jun 6, 2026
@alt-glitch

Copy link
Copy Markdown
Contributor

Duplicate of #40511 — byte-identical change loosening the Desktop right-rail preview width caps (38rem→72rem, intrinsic 32rem→64rem, markdown container widening), both closing #40494. Consolidating on one of the two.

@liuhao1024

Copy link
Copy Markdown
Contributor Author

Closing as self-duplicate of #40511 — both implement the same right-rail preview width cap loosening (38rem → 72rem). Keeping #40511 as the original.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Loosen right-rail preview width caps (38rem → 72rem)

3 participants