Skip to content

Fix #178: Prevent horizontal overflow and improve mobile responsiveness#180

Open
ADITYA-CODE-SOURCE wants to merge 1 commit intoeclipse-sw360:mainfrom
ADITYA-CODE-SOURCE:fix-css-overflow
Open

Fix #178: Prevent horizontal overflow and improve mobile responsiveness#180
ADITYA-CODE-SOURCE wants to merge 1 commit intoeclipse-sw360:mainfrom
ADITYA-CODE-SOURCE:fix-css-overflow

Conversation

@ADITYA-CODE-SOURCE
Copy link

Summary of Changes

This PR addresses issue #178 by implementing responsive CSS rules to prevent horizontal scrolling and overflow on small screens. These changes ensure that all layout containers and media elements stay within the viewport width.

Key Improvements

  • Media Handling: Set img, svg, and .footer-img to max-width: 100% and height: auto to prevent them from breaking the layout width.
  • Container Constraints: Updated .container-fluid, .td-outer, and .td-main to max-width: 100vw with overflow-x: hidden to contain stray elements.
  • Mobile Specifics: Added a media query for screens ≤ 480px to reduce padding/margins and cap image width at 90vw.
  • Safety Net: Applied overflow-x: hidden to the body tag to guarantee a clean mobile experience.

Visual Proof (Before vs. After)

I have verified these changes using Chrome DevTools at 320px width to ensure the white space on the right is eliminated.

Before (Overflowing) After (Fixed)
image image

Note to Mentors: This fix is a key part of my contribution goals for GSoC 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.

1 participant