Skip to content

Fix horizontal overflow on Galaxy S24 (360px width)#81

Merged
wulfland merged 5 commits intomainfrom
copilot/fix-galaxy-s24-responsiveness
Feb 11, 2026
Merged

Fix horizontal overflow on Galaxy S24 (360px width)#81
wulfland merged 5 commits intomainfrom
copilot/fix-galaxy-s24-responsiveness

Conversation

Copy link
Contributor

Copilot AI commented Feb 11, 2026

App displayed incorrectly on Galaxy S24 and similar narrow devices (360px width), causing horizontal scrolling and content clipping.

Root Cause

  • No global overflow prevention on viewport elements
  • Missing responsive breakpoint for screens < 400px
  • Container constraints not enforced with box-sizing
  • Fixed-width grid columns overflowing at narrow viewports

Changes

Global overflow prevention

/* Prevent horizontal scroll across all viewports */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  width: 100%;
  box-sizing: border-box;
}

New extra-small breakpoint

  • Added @media (max-width: 400px) targeting Galaxy S24-like devices
  • Applied across Layout, SetLogger, WorkoutExerciseCard, MesocycleDashboard, ProgressTracker

Component adjustments at < 400px

  • SetLogger grid: grid-template-columns: 26px 1fr 48px 42px 88px (was causing overflow)
  • Tab navigation: Reduced padding (0.5rem → 0.625rem) and font-size (0.875rem → 0.8125rem)
  • Mobile nav: Icons 1.5rem → 1.25rem, labels 0.625rem → 0.5625rem
  • Touch targets: Maintained 44px minimum for WCAG AAA compliance

Before/After

Before

Before - horizontal overflow

After (360x800)

Mesocycles fixed Workout fixed Progress fixed
Original prompt

This section details on the original issue you should resolve

<issue_title>Bug: not responsive on Galaxy S24</issue_title>
<issue_description>The app is not displayed correctly on Galaxy S24:

Image

Image</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits February 11, 2026 12:06
- Add overflow-x: hidden to html, body, and root to prevent horizontal scrolling
- Add box-sizing and width constraints to Layout container
- Add extra small screen breakpoint (max-width: 400px) for Galaxy S24-like devices
- Reduce padding and font sizes for tabs on narrow screens
- Improve SetLogger and WorkoutExerciseCard grid responsiveness
- Ensure all containers prevent horizontal overflow

Co-authored-by: wulfland <5276337+wulfland@users.noreply.github.com>
- Remove empty html rule block
- Remove duplicate overflow-x and max-width declarations (already set globally)

Co-authored-by: wulfland <5276337+wulfland@users.noreply.github.com>
- Increase button min-width and min-height from 42px to 44px for WCAG AAA compliance

Co-authored-by: wulfland <5276337+wulfland@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix responsiveness issues on Galaxy S24 Fix horizontal overflow on Galaxy S24 (360px width) Feb 11, 2026
Copilot AI requested a review from wulfland February 11, 2026 12:14
@wulfland wulfland marked this pull request as ready for review February 11, 2026 15:19
@wulfland wulfland enabled auto-merge February 11, 2026 15:20
@wulfland wulfland merged commit 887b03e into main Feb 11, 2026
4 checks passed
@wulfland wulfland deleted the copilot/fix-galaxy-s24-responsiveness branch February 11, 2026 15:20
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.

Bug: not responsive on Galaxy S24

2 participants