Skip to content

Increase z-index of flow headers from z-50 to z-100#4490

Open
leonardthethird wants to merge 2 commits intomainfrom
claude/fix-graph-banner-overlap-HS4Im
Open

Increase z-index of flow headers from z-50 to z-100#4490
leonardthethird wants to merge 2 commits intomainfrom
claude/fix-graph-banner-overlap-HS4Im

Conversation

@leonardthethird
Copy link
Contributor

@leonardthethird leonardthethird commented Mar 15, 2026

Summary

Updated the z-index stacking context for fixed header elements in the prediction flow from z-50 to z-100 to ensure proper layering and prevent overlapping issues with other UI elements.

Changes

  • Updated z-50 to z-100 in the loading skeleton header (tournament/[slug]/prediction-flow/loading.tsx)
  • Updated z-50 to z-100 in the main flow header component (components/flow/flow_header.tsx)

Details

Both fixed header elements that serve as the primary navigation/header in the prediction flow now use a higher z-index value (z-100) to ensure they remain above other page content and modal overlays. This prevents potential z-stacking conflicts with other fixed or absolutely positioned elements on the page.

Closes #4489

https://claude.ai/code/session_013ZzgDPESM7QDD6tyrUaqER

Summary by CodeRabbit

  • Style
    • Adjusted header stacking order to ensure proper visual display across application pages and components.

claude added 2 commits March 15, 2026 02:52
Add `isolate` to the main content container to create a new stacking
context. This ensures chart elements (which use z-10 internally) cannot
paint above the fixed z-50 header when scrolling.

Fixes #4489

https://claude.ai/code/session_013ZzgDPESM7QDD6tyrUaqER
Raise the prediction flow header z-index from z-50 to z-100 to match
the community header pattern. This prevents chart elements from
painting above the fixed header when scrolling. Also revert the
isolate approach in favor of this consistent pattern.

Updates both the flow_header component and the loading skeleton.

Fixes #4489

https://claude.ai/code/session_013ZzgDPESM7QDD6tyrUaqER
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 15, 2026

📝 Walkthrough

Walkthrough

Two header components receive z-index value increases from 50 to 100 to adjust stacking order and ensure proper layering in the UI.

Changes

Cohort / File(s) Summary
Header Z-Index Updates
front_end/src/app/(prediction-flow)/tournament/[slug]/prediction-flow/loading.tsx, front_end/src/components/flow/flow_header.tsx
Increased header z-index from 50 to 100 to adjust stacking order and prevent layering conflicts.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A header hops up the stack so high,
From fifty to one-hundred—reaching the sky!
No overlaps now, just pristine display,
The perfect layering saves the day! ✨

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and specifically describes the main change: increasing z-index values for flow header elements from z-50 to z-100 across two files.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch claude/fix-graph-banner-overlap-HS4Im
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

🚀 Preview Environment

Your preview environment is ready!

Resource Details
🌐 Preview URL https://metaculus-pr-4490-claude-fix-graph-banner-overla-preview.mtcl.cc
📦 Docker Image ghcr.io/metaculus/metaculus:claude-fix-graph-banner-overlap-hs4im-6e5b16a
🗄️ PostgreSQL NeonDB branch preview/pr-4490-claude-fix-graph-banner-overla
Redis Fly Redis mtc-redis-pr-4490-claude-fix-graph-banner-overla

Details

  • Commit: b4cc53b01fb7943cee955a6c179421981d0871c6
  • Branch: claude/fix-graph-banner-overlap-HS4Im
  • Fly App: metaculus-pr-4490-claude-fix-graph-banner-overla

ℹ️ Preview Environment Info

Isolation:

  • PostgreSQL and Redis are fully isolated from production
  • Each PR gets its own database branch and Redis instance
  • Changes pushed to this PR will trigger a new deployment

Limitations:

  • Background workers and cron jobs are not deployed in preview environments
  • If you need to test background jobs, use Heroku staging environments

Cleanup:

  • This preview will be automatically destroyed when the PR is closed

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.

Elements from graph sitting above banner in prediction flow

2 participants