Repository navigation
feat(docs): wide tables size their columns by their text (comark-ui#466) - #238
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
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.25so 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.
gpt-6.2-sol(high) | 𝕏
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.
f49c061 to
85d160d
Compare
There was a problem hiding this comment.
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, andcomark-timewith the renderer and verified that the direct and transitive runtime scripts match. - Advanced the Markdown cache revision to
drop.27and 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.
gpt-6.2-sol(high) | 𝕏
Latest result Pull request merged. Final answersSession Pull request merged. 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. 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. |
There was a problem hiding this comment.
ℹ️ 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.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
ℹ️ 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-zoomruntime 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.28so existing documents pick up the corrected runtime.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
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.29so published docs pick up the new markup.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
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.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
✅ 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.
gpt-6.2-sol(high) | 𝕏

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:
drop.27, because preview builds share comark-ui's version and cached docs would keep the old table markup.document-shell.css: a table can now grow past 72rem to its own width, since Drop leaves--comark-wide-maxunset. No new CSS was needed. Nothing in Drop readsdata-widthany more since the side outline moved to comark-outline in fix: the comments round on Drop's own pages: one comment box, ViteHub's thread card, relative times, shared copy buttons, a doc header that copies at once, who dropped it, the folder's drops, and comark's side outline #228.Tests:
vp test runontest/viewer/wide-table-browser,test/cost/cache,test/skills/markdown,test/skills/mermaid,test/viewer/prototype-pickerandtest/viewer/canvas-comments-browser(42 passed), plusvp lintandvp fmt --checkon the changed files.Depends on onmax/comark-ui#466; switch the pin to a release once it ships.