Commit ed2bdb7
authored
feat: convert theme presets to horizontally scrollable carousel on mobile (JhaSourav07#2187)
## Description
This PR improves the mobile responsiveness of the Customization Studio
by converting the Theme Preset section into a horizontally scrollable
layout on smaller screens.
### Changes Made
* Added horizontal scrolling support for Theme Presets on mobile
devices.
* Preserved the existing wrapped layout behavior on larger screens.
* Reduced vertical space usage and improved theme browsing experience on
narrow viewports.
* Updated the related test assertions to match the new implementation.
Fixes JhaSourav07#1886
## Pillar
* [ ] 🎨 Pillar 1 — New Theme Design
* [ ] 📐 Pillar 2 — Geometric SVG Improvement
* [ ] 🕐 Pillar 3 — Timezone Logic Optimization
* [x] 🛠️ Other (Bug fix, refactoring, docs)
## Visual Preview
### Before
<img width="391" height="847" alt="Screenshot 2026-06-01 001208"
src="https://github.com/user-attachments/assets/378de170-9362-49b8-b810-4902361aca5c"
/>
* Theme Presets were displayed in multiple rows on mobile screens,
consuming excessive vertical space.
### After
<img width="387" height="844" alt="Screenshot 2026-06-01 001255"
src="https://github.com/user-attachments/assets/32555876-d659-4093-bade-18fa32fca5ee"
/>
* Theme Presets are displayed in a horizontally scrollable row on mobile
screens, improving usability and reducing scrolling.
## Checklist before requesting a review:
* [x] I have read the `CONTRIBUTING.md` file.
* [x] I have tested these changes locally
(`localhost:3000/api/streak?user=YOUR_USERNAME`).
* [x] I have run `npm run format` and `npm run lint` locally and
resolved all errors.
* [ ] I have run `npm run test` and all tests pass locally.
* [ ] I have run `npm run test:coverage` and branch coverage is at or
above 70%.
* [x] My commits follow the Conventional Commits format.
* [ ] I have updated `README.md` if I added a new theme or URL
parameter. (Not applicable)
* [x] I have starred the repo.
* [x] I have made sure that I have only one commit to merge in this PR.
* [x] The changes maintain the existing UI quality and responsiveness
standards.
* [x] (Recommended) I joined the CommitPulse Discord server for faster
collaboration, mentorship, and PR support.3 files changed
Lines changed: 27 additions & 3 deletions
File tree
- app/customize/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
| 136 | + | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| |||
0 commit comments