Repository navigation
Conversation
The header bar used position: sticky with left: 0, so it partly stuck to the left edge while the rows scrolled. Past a certain scroll offset the headings lagged behind the data columns. Only top: 0 is needed to keep the header pinned vertically.
|
🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review. Tip
Note Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect. Caution Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code. |
Pull Request
Issue
In the data browser, scrolling a wide class horizontally makes the column headings drift away from their data columns. The header bar stops moving after a certain offset (≈180px in a 2160px-wide table in a 1212px viewport) while the rows keep scrolling, so every heading sits over the wrong column.
Approach
The header bar
.barisposition: stickywith bothtop: 0andleft: 0.top: 0keeps the header pinned when scrolling vertically, which is intended.left: 0also makes the bar stick horizontally until it hits the edge of its containing block, so it lags behind the rows.This removes
left: 0. The checkbox, row-number and frozen-column header cells keep their ownposition: sticky; left: …and still pin correctly.Measured in Chrome on a real class (left edge of the first data column, header vs row):
Tasks
Summary by CodeRabbit