Skip to content

Fix mobile widget responsiveness#5341

Closed
nishtha-agarwal-211 wants to merge 1 commit intosugarlabs:masterfrom
nishtha-agarwal-211:fix-mobile-widget-responsiveness
Closed

Fix mobile widget responsiveness#5341
nishtha-agarwal-211 wants to merge 1 commit intosugarlabs:masterfrom
nishtha-agarwal-211:fix-mobile-widget-responsiveness

Conversation

@nishtha-agarwal-211
Copy link

Summary

This PR improves the mobile responsiveness of widget windows by consolidating redundant CSS breakpoints and introducing fluid sizing using clamp().

Changes

  • Consolidated mobile styles under @media (max-width: 600px)
  • Removed redundant 450px and 320px breakpoints
  • Prevented widget overflow on small screens
  • Enforced WCAG-compliant 44×44px touch targets
  • Preserved all desktop behavior

Testing

Manually tested using browser DevTools:

  • 320px, 360px, 375px — no overflow observed
  • 600px — smooth breakpoint transition
  • 1280px — no desktop regressions

Note

Inline width/height styles applied by the JS resizing logic may override mobile full-screen sizing if a window is resized on desktop and then switched to mobile. This behavior is unchanged and was intentionally left untouched to keep this PR scoped to CSS responsiveness only.

Fixes #5321

@github-actions
Copy link
Contributor

❌ Some Jest tests failed. Please check the logs and fix the issues before merging.

Failed Tests:

abc.test.js

Consolidate redundant mobile media queries and replace hard-coded
pixel values with fluid sizing using clamp(). This prevents widget
overflow on small screens and improves touch usability while keeping
desktop behavior unchanged.

Fixes sugarlabs#5321
@nishtha-agarwal-211 nishtha-agarwal-211 force-pushed the fix-mobile-widget-responsiveness branch from 544cdc5 to aa81dbf Compare January 26, 2026 07:12
@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@vanshika2720
Copy link
Contributor

vanshika2720 commented Feb 16, 2026

@nishtha-agarwal-211 duplicate of PR #5322 .Please close this

@kushvinth
Copy link

kushvinth commented Feb 16, 2026

@nishtha-agarwal-211 Duplicate of PR #5322 .Please close

@nishtha-agarwal-211
Copy link
Author

Thank you for pointing it out.
Since this is a duplicate of PR #5322, I am closing this PR to avoid duplication.

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.

[UI/UX] Mobile Responsive Issues in Widget Windows

3 participants