Repository navigation
feat: add use_freeze_tables() to freeze table headers and first columns - #51
Merged
Merged
Conversation
…ns (#30) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Code Coverage SummaryDiff against mainResults for commit: 87dc98b Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@donyunardi may be of interest |
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.
Closes #30
Adds
use_freeze_tables(), which returns atagListto include once in the app UI (e.g.teal::init(header = ...)). It makes the header rows and/or the first column ofteal.widgetstables sticky.rtablesrenders no<thead>, so a smallMutationObserverscript moves the leading<th>rows into a<thead>(see Add<thead>and<tbody>tags into output ofas_htmlpharmaverse/rtables#1123).module_idslimits freezing to tables inside elements whoseidcontains any of the given strings.border-collapse: separate. With collapsed borders, Chromium paints the scrolled body text over the sticky header.module_idsis used (selectors are now JSON-encoded), added argument checks, used--bs-body-bgfor sticky backgrounds, removed empty<tbody>elements left after the restructure, and added tests and an example.Verified in headless Chrome with the
tm_t_summaryexample: the header stays visible when scrolling vertically, the first column stays visible when scrolling horizontally, and the corner cell stays on top of both.🤖 Generated with Claude Code