Skip to content

fix: resolve mobile layout overflow on small screens (Issue #178)#182

Open
ADITYA-CODE-SOURCE wants to merge 3 commits intoeclipse-sw360:mainfrom
ADITYA-CODE-SOURCE:fix/mobile-overflow-178
Open

fix: resolve mobile layout overflow on small screens (Issue #178)#182
ADITYA-CODE-SOURCE wants to merge 3 commits intoeclipse-sw360:mainfrom
ADITYA-CODE-SOURCE:fix/mobile-overflow-178

Conversation

@ADITYA-CODE-SOURCE
Copy link

Description

Fixed horizontal overflow on mobile devices (320px width) caused by fixed-width images in the hero section.

Problem

When browsing the SW360 homepage on narrow screen widths (e.g., mobile phone / 320px), the hero section overflows horizontally, resulting in white space on the right side of the screen.

Solution

Made the hero images responsive by:

  1. Replacing fixed width attributes with CSS classes
  2. Adding responsive CSS with media queries for different screen sizes

Changes Made

content/en/_index.html:

  • Changed logo from width="400" to class="hero-logo"
  • Changed screenshot from width="500" to class="hero-screenshot"

assets/scss/_styles_project.scss:

  • Added .hero-logo class with max-width and media queries
  • Added .hero-screenshot class with max-width and media queries
  • Added responsive padding for mobile viewports

Testing

  • Layout now adapts properly to small screens without horizontal overflow
  • Responsive breakpoints: 768px (tablet) and 576px (mobile)

Fixes #178

…tibility

This PR addresses two major blockers encountered while setting up the
local development environment on Windows 11 using the provided Docker script:

1. Docker Volume Mount Failure (Windows / Git Bash)
   - Added MSYS_NO_PATHCONV=1 to disable automatic path conversion
   - Added --user root to resolve volume mount permission issues

2. Build Failure: Duplicate Frontmatter Keys
   - Removed duplicate speakers: keys in 3 Markdown files:
     - content/en/events/2018/free-software-legal-licensing-workshop-2018.md
     - content/en/events/2018/yanking-the-chain-open-source.md
     - content/en/events/2017/open-source-summit-europe-2017.md

Fixes eclipse-sw360#179
…w360#178)

Fixed horizontal overflow on mobile devices (320px width) caused by fixed-width
images in the hero section.

Changes made:
- content/en/_index.html: Replaced fixed widths with responsive classes
  - Changed logo from width="400" to class="hero-logo"
  - Changed screenshot from width="500" to class="hero-screenshot"

- assets/scss/_styles_project.scss: Added responsive CSS rules
  - Added .hero-logo class with max-width and media queries
  - Added .hero-screenshot class with max-width and media queries
  - Added responsive padding for mobile viewports

The layout now adapts properly to small screens without horizontal overflow.

Fixes eclipse-sw360#178
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.

Mobile layout breaks on small screens due to horizontal overflow on SW360 homepage

1 participant