fix: make project cards responsive at 360px - #1451
Closed
riyanshigupta890-cloud wants to merge 2 commits into
Closed
fix: make project cards responsive at 360px#1451riyanshigupta890-cloud wants to merge 2 commits into
riyanshigupta890-cloud wants to merge 2 commits into
Conversation
|
@riyanshigupta890-cloud is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel. A member of the Team first needs to authorize it. |
- Reduce card padding to 20px on mobile (360px-380px) - Add intermediate styles for small tablets (381px-640px) - Restore original padding on tablet+ (641px+) - Tested at 360px, 375px, 390px, 768px, 1280px - No regressions on larger breakpoints Fixes komalharshita#9 Signed-off-by: Riyanshi Gupta <riyanshigupta890@gmail.com>
riyanshigupta890-cloud
force-pushed
the
fix/responsive-cards-360px-v2
branch
from
August 2, 2026 14:34
37c2e99 to
c0e5ba1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary [required]
This PR improves project card responsiveness on small mobile devices (360px–390px viewports). Budget Android phones often have 360px width, and the current design causes cards to overflow horizontally, wrapping tags awkwardly and clipping button text. This fix adds a three-tier responsive strategy: compact styling on mobile (360–380px), intermediate sizing on small tablets (381–640px), and original styling on larger devices (641px+). No JavaScript or logic changes; CSS only.
Related Issue [required]
Closes #9
Type of Change [required]
data/projects.jsonWhat Was Changed [required]
static/style.css@media (max-width: 380px)block with reduced card padding (20px), single-column grid, smaller tags (0.7rem), and full-width buttons. Added@media (min-width: 381px) and (max-width: 640px)for intermediate tablet styles (24px padding). Added@media (min-width: 641px)to restore original desktop styles and prevent regressions.How to Test This PR [required]
git checkout fix/responsive-cards-360px-v2python app.pyTest Results [required]
Visual regression testing completed across all breakpoints: