fix: fit tables within content width#96
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughSummary by CodeRabbit
WalkthroughCSS table layout changed in both default and paper themes from block to table with fixed layout and full width; new td/th rules relax truncation and enable normal wrapping. The docs site gains a “Wide Table” example demonstrating larger tables. ChangesTable layout & cell wrapping
🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/chronicle/src/themes/default/Page.module.css`:
- Around line 84-86: In Page.module.css remove the overflow-x: auto from the
rule that sets display: table and width: 100% (the selector that currently
contains "display: table; width: 100%; overflow-x: auto;"), create a new
block-level wrapper class (e.g. .tableWrapper) that has overflow-x: auto and
optionally -webkit-overflow-scrolling: touch, keep the table rule as display:
table; width: 100%;, and update the component/JSX that renders the table to wrap
it in a <div> with that wrapper class (e.g. <div
className={styles.tableWrapper}>…<table
className={styles.yourTableClass}>...</table>…</div>).
In `@packages/chronicle/src/themes/paper/Page.module.css`:
- Around line 201-203: The rule that sets display: table; width: 100%;
overflow-x: auto should be split: remove overflow-x: auto from the element
currently styled as display: table and instead wrap the table in a scrollable
container (e.g., add a .tableWrapper or similar) and apply overflow-x: auto to
that wrapper while leaving display: table and width: 100% on the table itself;
update the corresponding selector in Page.module.css and make the same change in
the default theme to restore horizontal scrolling for wide tables.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: ba8282f2-05f8-4cc0-b037-e00fecfd8f7c
📒 Files selected for processing (2)
packages/chronicle/src/themes/default/Page.module.csspackages/chronicle/src/themes/paper/Page.module.css
Override Apsara cell overflow/nowrap to allow multiline content. Add wide table example for testing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
display: blocktodisplay: tablefor tables in both default and paper themesTest plan
🤖 Generated with Claude Code