Skip to content

feat(docs): wide tables size their columns by their text (comark-ui#466) - #238

Merged
vite-hub[bot] merged 7 commits into
mainfrom
feat/comark-table-widths
Nov 18, 2026
Merged

vite-hub[bot] merged 7 commits into
mainfrom
feat/comark-table-widths

Conversation

@onmax

@onmax onmax commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Docs with wide tables read better. A table now sizes its columns by their text and takes the room the page gives it, on both sides of the text. In the before/after, the report table at 1480px goes from 1603px to 1220px tall and fills the room on both sides. At 1280px its prose stacks under the summary instead of squeezing into thin columns. On a phone, a table with prose becomes one card per row.

Before and after: https://drop.vitehub.dev/d/qrqbkz0n05jh/before-after

What this PR changes:

Tests: vp test run on test/viewer/wide-table-browser, test/cost/cache, test/skills/markdown, test/skills/mermaid, test/viewer/prototype-picker and test/viewer/canvas-comments-browser (42 passed), plus vp lint and vp fmt --check on the changed files.

Depends on onmax/comark-ui#466; switch the pin to a release once it ships.

@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-18T15:19:15.187897Z
We couldn’t complete this review. Comment @codex review to try again.
f49c061 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

Update the Comark preview pins before merging. This build brings back the stacked chart zoom bug fixed in Drop #237 and misses upstream fixes for the new table layout.

Approach: Keeping column sizing in Comark and bumping Drop’s render cache is the right approach; the pinned build needs to include both sets of fixes.

Reviewed changes — I checked the resolved packages, render cache, document shell, and browser assertions. The 43 focused tests passed on the exact PR pins; additional Chromium checks reproduced the regressions below.

  • Dependencies and cache: Moves four Comark preview pins and advances the cache revision to drop.25 so published docs pick up the new markup.
  • Document layout: Keeps the existing shell rules and outline integration; the browser test measures cell positions and adds an outline-clearance case at 1480px.

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

Comment thread package.json Resolved
Comment thread package.json Resolved
Pins comark-ui and the six comark packages Drop imports directly to
onmax/comark-ui#466's build. A wide table now sizes its columns by their
text, grows past the wide blocks' 72rem to its own width (up to 96em),
and stacks its prose under the short columns where the room runs out.

The cache revision goes to drop.27, since preview builds share
comark-ui's version. The wide-table browser test now reads stacking from
where a row's cells sit, because comark-ui lays a table with prose out
as a grid even side by side, and checks the table at 1480px.
@onmax
onmax force-pushed the feat/comark-table-widths branch from f49c061 to 85d160d Compare November 18, 2026 15:52

@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

At 1480px, the wide-table fixture loses its “On this page” navigation. I reproduced this in Chromium against the current main and PR renderer pins. The two prior findings remain open.

Reviewed changes — I checked the changes since f49c061, including the integration with the outline added in #228. All 53 focused tests passed.

  • Aligned the preview pins for comark-outline, comark-properties, and comark-time with the renderer and verified that the direct and transitive runtime scripts match.
  • Advanced the Markdown cache revision to drop.27 and updated the shell comment without changing the CSS rules.
  • Replaced the 1480px outline assertions with checks that the table grows on both sides without stacking or scrolling.

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

Comment thread test/viewer/wide-table-browser.test.mjs Resolved
@vite-hub

vite-hub Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Waiting 2026-11-18T22:15:49.932Z 2m 43s
View session Completed 2026-11-18T22:00:40.807Z 8m 45s
View session Cancelled 2026-11-18T21:52:53.765Z 5m 38s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

Current-head CI passed, all review threads are resolved, and 26 focused tests passed locally. Local browser tests lacked Playwright binaries, and lint lacked generated types. No repair was pushed: the remaining merge prerequisite is replacing the Comark preview pins with a verified release.

Session

Pushed 54c0017 with the lockfile conflict resolved and the folded-table minimum limited to screens. Resolved the PDF clipping thread and added an A5 export regression test. Lint, formatting, and 38 focused tests passed; browser verification awaits CI because Playwright downloads failed on DNS. The Comark release pin remains a merge prerequisite.

Session

Pushed 54c0017 with the lockfile conflict resolved and the folded-table minimum limited to screens. Resolved the PDF clipping thread and added an A5 export regression test. Lint, formatting, and 38 focused tests passed; browser verification awaits CI because Playwright downloads failed on DNS. The Comark release pin remains a merge prerequisite.

Session

Pushed 54c0017 with the lockfile conflict resolved and the folded-table minimum limited to screens. Resolved the PDF clipping thread and added an A5 export regression test. Lint, formatting, and 38 focused tests passed; browser verification awaits CI because Playwright downloads failed on DNS. The Comark release pin remains a merge prerequisite.

Session

Pushed 54c0017 with the lockfile conflict resolved and the folded-table minimum limited to screens. Resolved the PDF clipping thread and added an A5 export regression test. Lint, formatting, and 38 focused tests passed; browser verification awaits CI because Playwright downloads failed on DNS. The Comark release pin remains a merge prerequisite.

Session

Pushed 54c0017 with the lockfile conflict resolved and the folded-table minimum limited to screens. Resolved the PDF clipping thread and added an A5 export regression test. Lint, formatting, and 38 focused tests passed; browser verification awaits CI because Playwright downloads failed on DNS. The Comark release pin remains a merge prerequisite.

View session

Pushed 54c0017 with the lockfile conflict resolved and the folded-table minimum limited to screens. Resolved the PDF clipping thread and added an A5 export regression test. Lint, formatting, and 38 focused tests passed; browser verification awaits CI because Playwright downloads failed on DNS. The Comark release pin remains a merge prerequisite.

@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 P0 or P1 findings. The two earlier P1 threads remain open; one new P2 is noted inline.

Approach: Reusing the existing outline in the document flow keeps the section links reachable without narrowing the table.

Reviewed changes — I reviewed 85d160d → a55428a. All 13 focused tests passed, and I verified that the fallback links navigate in Chromium and Firefox.

  • Restored section navigation. Moved the outline into the document flow on desktop when it cannot fit beside a wide table.
  • Extended browser coverage. Checked that the links are visible and clear of the table at 1480px while retaining the side rail at 1600px.

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

Comment thread shared/document-shell.css Resolved

@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 defects found. The existing P1 responsive-table thread remains open.

Reviewed changes — I reviewed a55428a → 1266fbb. All 48 focused tests passed on the exact PR dependency pins, and lint and formatting checks passed.

  • Restored stacked-chart zoom. Pinned the working comark-zoom runtime and verified that the zoomed bars reference clip paths inside the cloned SVG.
  • Wrapped long outline links. Verified that an unbroken heading no longer causes horizontal scrolling at 1480px when the outline appears below the table.
  • Invalidated cached Markdown renders. Advanced the cache revision to drop.28 so existing documents pick up the corrected runtime.

Pullfrog  | Fix it ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

@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

The folded layout still needs a readable prose column. At 630px, the new rule squeezes the regression fixture’s prose into a 43px track in Chromium and a 16px track in Firefox.

Approach: The Drop-side workaround restores headers for dense tables on phones, but folded tables need a minimum on the grid track itself, not just a change to the cell minimum.

Reviewed changes — I reviewed 4ac661e → db23009. All 36 focused tests passed; additional Chromium and Firefox checks confirmed the dense-table fix and reproduced the folded-track regression.

  • Restored dense tables on phones. Marked wide grids without prose so they keep visible headers and scroll within their wrapper.
  • Changed folded cell sizing. Removed the minimum width from folded prose cells and added a regression test for overlap with the numeric columns.
  • Invalidated cached Markdown renders. Advanced the cache revision to drop.29 so published docs pick up the new markup.

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

Comment thread shared/document-shell.css Resolved

@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

Folded prose is readable on screen now, but the new minimum can clip the last column when a reader exports the document to PDF.

Reviewed changes — I reviewed db23009 → de1e286. All 37 focused tests passed. I also checked the rendered document in Chromium and Firefox and compared the text in Chromium’s exported PDFs.

  • Moved the minimum to the folded grid track. At 630px, the metrics fixture’s prose track now has 202.5px in both engines, with horizontal scrolling confined to the table wrapper. The single-column phone layout is unchanged.
  • Extended the browser regression. The test now checks minimum prose width, clearance from the metric columns, and no page-level horizontal scroll in both Chromium and Firefox.

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

Comment thread shared/document-shell.css Resolved

@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 P0 or P1 findings remain.

Reviewed changes — I reviewed de1e286 → 54c0017. All 40 focused tests passed, along with lint and formatting checks on the changed files.

  • Limited the folded prose minimum to screen media. The 630px layout stays readable in Chromium and Firefox without imposing the same minimum on PDFs.
  • Added an A5 PDF regression test. I also verified with production stylesheet order that Chromium preserves the full last-column heading and its value (912) in the viewer and on the direct Markdown page.

Pullfrog  | View workflow run | Using gpt-6.2-sol(high) | 𝕏

@vite-hub
vite-hub Bot merged commit bccf638 into main Nov 18, 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