Skip to content

feat(docs): wide tables take the room left of the text - #221

Merged
vite-hub[bot] merged 3 commits into
mainfrom
feat/wide-tables
Nov 17, 2026
Merged

vite-hub[bot] merged 3 commits into
mainfrom
feat/wide-tables

Conversation

@onmax

@onmax onmax commented Nov 17, 2026

Copy link
Copy Markdown
Member

With the outline open, a wide table in a Markdown doc stays in the text column and wraps its ids into port, al, #15, 96, while the space left of the text sits empty.

document-shell.css gave a wide block the same room on both sides, the smaller one, since --comark-wide-end was var(--comark-wide-start) and both took off --drop-right. So a block beside the outline could never lean left.

This gives each side its own room: --comark-wide-start is the space left of the column, and --comark-wide-end the space right of it less the panel and the outline. A doc with comment cards in the margin zeroes both, as before. OUTLINE_SCRIPT now counts a table as wide when comark-ui's width estimate (data-width, in em) passes the text. Like a compare, a table can't push the outline out of its column; it stacks its prose columns instead.

It needs onmax/comark-ui#451, which adds the table layout, and bumps comark-ui, comark-chips, comark-comments and comark-linter to that PR's build. The bump also brings what comark-ui merged since the last pin (#445, #447, #450). Lint, typecheck and the suite pass, except the Marker and Highlight text tip browser tests, which fail on main too on my machine.

test/viewer/wide-table-browser.test.mjs renders a PR table in the viewer's frame. At 1600px the table starts more than 100px left of the text and the outline stays beside it. At 390px it stacks.

Before/after for the table layout itself: Drop

🤖 Generated with Claude Code

Tables from comark-ui's new tableLayout plugin (onmax/comark-ui#451) are
wide blocks. Drop gave a wide block the same room on both sides, the
smaller of the two, so with the outline open a table stayed centred and
never reached the empty space left of the text.

Each side now gets its own room: --comark-wide-start is the space left of
the column and --comark-wide-end the space right of it, less the panel
and the outline. A doc with comment cards in the margin zeroes both. The
outline counts a table as wide when comark-ui's width estimate passes the
text, and lets it stack rather than give up its column, as a compare
does.

Bumps comark-ui, comark-chips, comark-comments and comark-linter to the
PR's build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T11:02:17.652681Z
We couldn’t complete this review. Comment @codex review to try again.
a0ae542 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pullfrog pullfrog Bot 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.

Important

Two dependency-upgrade issues need addressing: documented diagram fences stop rendering, and existing cached documents do not receive the new table layout.

Reviewed changes — Reviewed the full PR, including the renderer dependency upgrade, document geometry, outline placement, and browser regression coverage.

  • Renderer upgrade: Pins the four Comark dependencies to the upstream wide-table preview, including its additional preset behavior changes.
  • Asymmetric wide blocks: Gives tables, comparisons, and diagrams independent room on either side while keeping comment margins reserved.
  • Outline placement: Recognizes estimated table widths and retains the outline while cramped tables stack their prose columns.
  • Browser coverage: Checks desktop leftward expansion, outline separation, single-line chips, and phone stacking without page overflow.

Validation: pnpm test passed with 751 tests and 3 skipped; changed-file lint and pnpm typecheck passed. Separate targeted reproductions confirmed both findings below.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

Comment thread package.json Resolved
Comment thread package.json Resolved
@vite-hub

vite-hub Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Waiting 2026-11-17T14:19:40.131Z 1m 2s
View session Last seen running 2026-11-17T13:49:29.175Z 1s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

Ready: verified the expected HEAD, reviewed the diff and review bodies, and confirmed both earlier findings are fixed with resolved threads. Current hosted checks pass. Local lint and 25 focused tests passed; the browser test could not launch because Chromium is absent. No further repair or push was needed.

Session

Pull request evidence changed.

Session

Pull request evidence changed.

@pullfrog pullfrog Bot 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.

✅ No new issues found. No P0 or P1 findings remain.

Reviewed changes — Reviewed the changes since the previous Pullfrog review, focusing on renderer compatibility and refreshing existing documents after the preview upgrade.

  • Bumped Markdown cache integrity to +drop.24, so previously cached documents receive the wide-table renderer on their next read.
  • Added warm-cache regressions for both previous preview identities, checking width metadata, a single refresh, and subsequent cache hits.
  • Preserved diagram rendering through the merge’s explicit diagrams: true and added a stubbed-Kroki regression asserting rendered Graphviz SVG.

Validation: all 36 focused tests passed, including wide-table layout and direct-page Mermaid CSP coverage; changed-file lint and pnpm typecheck passed.

Pullfrog  | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

@vite-hub
vite-hub Bot merged commit d77c6bc into main Nov 17, 2026
6 checks passed
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