Skip to content

fix: stop GitHub corner and theme toggle from being clipped on scroll#88

Merged
nitrocode merged 1 commit into
mainfrom
copilot/fix-cutoff-icons-on-scroll
Apr 26, 2026
Merged

fix: stop GitHub corner and theme toggle from being clipped on scroll#88
nitrocode merged 1 commit into
mainfrom
copilot/fix-cutoff-icons-on-scroll

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 26, 2026

overflow-x: hidden on <html> creates a scroll container, causing position: fixed children (GitHub corner, theme toggle) to be clipped by the html overflow box as the page scrolls rather than staying anchored to the viewport.

Change

  • styles/base.css: overflow-x: hiddenoverflow-x: clip on the html rule

clip blocks horizontal overflow identically to hidden but does not establish a scroll container, so fixed elements remain viewport-anchored on scroll. The overflow-x: hidden on body is preserved — it handles the iOS Safari case where body acting as scroll container would re-anchor fixed elements.

/* before */
html { scroll-behavior: smooth; overflow-x: hidden; }

/* after */
html { scroll-behavior: smooth; overflow-x: clip; }

Summary by CodeRabbit

  • Style
    • Updated root element overflow handling to improve scrolling behavior and ensure fixed elements position correctly across browsers, including iOS Safari.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 26, 2026

📝 Walkthrough

Walkthrough

I pity the fool who miss this change, fool! This here CSS update be replacin' the html element's overflow-x property from hidden to clip, and the comment be updated to explain how this affect position: fixed elements on iOS Safari, fool!

Changes

Cohort / File(s) Summary
CSS Overflow Handling
styles/base.css
Changed overflow-x value from hidden to clip on the html selector. Updated accompanying comment to explain the clipping behavior and impact on fixed positioning during scrolling scenarios, especially on iOS Safari.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

I'm tellin' ya, fool, this be a simple CSS property swap with comment clarification. Ain't no logic changes, ain't no complex interactions. Just one file, one property, straightforward as it come. Any fool can review this in no time!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: replacing overflow-x: hidden with overflow-x: clip to fix GitHub corner and theme toggle clipping on scroll.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch copilot/fix-cutoff-icons-on-scroll

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

@nitrocode nitrocode marked this pull request as ready for review April 26, 2026 18:35
@nitrocode nitrocode self-requested a review as a code owner April 26, 2026 18:35
@github-actions
Copy link
Copy Markdown
Contributor

👁️ PR Preview

🚀 Open Preview

Deployed from commit 7d44784 · Updates on every push to this PR
(Preview is removed automatically when the PR is closed.)

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (99df9d1) to head (7d44784).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #88   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          242       242           
  Branches       109       109           
=========================================
  Hits           242       242           
Flag Coverage Δ
unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99df9d1...7d44784. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@styles/base.css`:
- Line 14: The change in styles/base.css adds "overflow-x: clip" but the
compiled stylesheet (styles.css) wasn't regenerated; run the existing build step
(npm run build:css which invokes scripts/build-css.js) to rebuild styles.css
before committing or testing so the generated CSS reflects the change, and
ensure styles.css is updated in the PR (or add a note to CI to run build:css).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f43c67c7-a368-4ec4-a38d-42002e8fe7ac

📥 Commits

Reviewing files that changed from the base of the PR and between 99df9d1 and 7d44784.

📒 Files selected for processing (1)
  • styles/base.css

Comment thread styles/base.css
@nitrocode nitrocode merged commit 6e676fb into main Apr 26, 2026
11 checks passed
@nitrocode nitrocode deleted the copilot/fix-cutoff-icons-on-scroll branch April 26, 2026 18:41
github-actions Bot added a commit that referenced this pull request Apr 26, 2026
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