Skip to content

Fix overlapping header rows in attendance table - #129

Merged
buzz-code merged 1 commit into
mainfrom
claude/user-request-attendance-report-jjj6xx
Jul 24, 2026
Merged

buzz-code merged 1 commit into
mainfrom
claude/user-request-attendance-report-jjj6xx

Conversation

@buzz-code

Copy link
Copy Markdown
Owner

Summary

  • The attendance form's two sticky header rows (dates/lesson-info, then column labels) both anchored to top: 0, so once scrolled they collided instead of stacking - the shorter column-labels row rendered on top of the taller row above it, which then bled into the first student row.
  • The first row's height varies depending on which optional fields are shown (lesson signature fields, per-date lesson count field, date wrapping), so a static offset wasn't viable - it's now measured at runtime (ResizeObserver) and applied as the second row's sticky top offset.

Test plan

  • Verified via a temporary local harness (mock data, real components) that the two header rows no longer overlap at any scroll position, including the worst case (all optional fields shown)
  • yarn test in client - 177 tests passing

Generated by Claude Code

The two sticky header rows (dates/lesson-info, then column labels)
both anchored to top:0, so once scrolled they collided instead of
stacking - the shorter column-labels row would render on top of the
taller row above it, which then bled into the first student row.
The first row's height varies with which optional fields are shown,
so it's measured at runtime and used as the second row's sticky top
offset.
@buzz-code
buzz-code merged commit 2353ec6 into main Jul 24, 2026
3 checks passed
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.

2 participants