Skip to content

Stop the forest table from being clipped or hidden under sidebars - #187

Open
yihui wants to merge 3 commits into
mainfrom
fix-184-table-clipping
Open

yihui wants to merge 3 commits into
mainfrom
fix-184-table-clipping

Conversation

@yihui

@yihui yihui commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

Fixes #184.

The table was centered on its parent (margin-left: 50% + translateX(-50%)) with max-width: calc(100vw - 40px). A table wider than its parent grew leftward and slid under fixed sidebars/TOCs; left-anchoring it instead got clipped at the right edge on pages with overflow-x: hidden. CSS can't know the parent's offset, so a viewport-based cap can't be right in general.

Now the container fills its parent (no width/max-width), a wider table scrolls inside .lt-wrap, and resize: horizontal lets users drag the corner to make it wider. Updated the width docs accordingly.

No NEWS entry: the centered layout only exists in the unreleased lt rewrite.

🤖 Generated with Claude Code

yihui and others added 3 commits November 18, 2026 17:36
The table was centered on its parent with `margin-left: 50%` and
`translateX(-50%)`, capped at `100vw - 40px`. A table wider than its parent
grew leftward under fixed sidebars/TOCs, and anchoring it left instead was
clipped at the right edge on pages with `overflow-x: hidden`. CSS can't know
the parent's offset, so drop the sizing: the container now fills its parent,
a wider table scrolls inside `.lt-wrap`, and `resize: horizontal` lets users
drag it wider.

Fixes #184

Co-Authored-By: Claude Code <noreply@anthropic.com>
Bootstrap sets `display: block` on tables; override it in pkgdown/extra.css so
the table sizes normally inside `.lt-wrap`.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Mirror the lt workflow: per-PR surge domain, sticky comment with the preview
URL, and teardown when the PR closes or its branch is deleted.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Site preview: https://merck-forestly-pr-187.surge.sh

Updates on every push; removed when this PR closes.

@yihui
yihui requested a review from LittleBeannie November 21, 2026 02:44

This branch has not been deployed

No deployments
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.

Partial display of the interactive AE forest plot when the brower zooms in

1 participant