Repository navigation
Stop the forest table from being clipped or hidden under sidebars - #187
Merged
Merged
Conversation
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>
|
Site preview: https://merck-forestly-pr-187.surge.sh Updates on every push; removed when this PR closes. |
LittleBeannie
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #184.
The table was centered on its parent (
margin-left: 50%+translateX(-50%)) withmax-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 withoverflow-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, andresize: horizontallets users drag the corner to make it wider. Updated thewidthdocs accordingly.No NEWS entry: the centered layout only exists in the unreleased
ltrewrite.🤖 Generated with Claude Code