Skip to content

Conversation

@RyannosaurusRex
Copy link
Member

Summary

Fixes #36 - Resolves the browser scrolling bug where content gets clipped with no scrollbar when browser window height is insufficient.

Changes Made

  • Fixed body height constraint: Changed height: 100% to min-height: 100vh on body element
  • Added horizontal overflow protection: Added overflow-x: hidden to html element to prevent unwanted horizontal scrollbars
  • Preserved existing layout: All existing responsive design and layout features remain intact

Technical Details

The issue was caused by height: 100% on the body element, which constrains the body to exactly the viewport height. When content exceeds this height, it gets clipped because the body cannot expand.

By changing to min-height: 100vh, the body:

  • Has a minimum height of the full viewport
  • Can expand beyond the viewport when content requires it
  • Allows natural scrolling behavior when content overflows

Testing

✅ Content now scrolls properly when it exceeds viewport height
✅ No horizontal scrollbars appear unexpectedly
✅ Existing responsive design still works correctly
✅ Both light and dark themes function properly

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

This is a simple but important fix that improves the user experience for visitors with smaller screens or windows.

…insufficient

- Change body height from 100% to min-height: 100vh to allow scrolling
- Add overflow-x: hidden to html to prevent horizontal scroll issues
- Ensure body can expand beyond viewport when content requires it
- Maintains existing layout while fixing clipped content issue

Fixes #36
@netlify
Copy link

netlify bot commented Jul 8, 2025

Deploy Preview for tricitiesdev ready!

Name Link
🔨 Latest commit 6d3b818
🔍 Latest deploy log https://app.netlify.com/projects/tricitiesdev/deploys/686da62adc7f8c0008bb94da
😎 Deploy Preview https://deploy-preview-69--tricitiesdev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

When browser window height insufficient for full page view, content will be clipped with no ability to scroll (no scrollbar)

2 participants