Commit 58daa57
authored
fix(navbar): show theme toggle on mobile screens (JhaSourav07#918)
## Description
Fixes JhaSourav07#889
This PR fixes the issue where the theme toggle button was not visible on
small/mobile screen sizes.
Previously, the theme toggle button was placed inside a desktop-only
container, causing it to disappear on smaller devices. This update
ensures that the theme toggle remains accessible across mobile, tablet,
and desktop screen sizes while preserving the existing responsive navbar
behavior.
## Changes Made
* Fixed responsive visibility issue for the theme toggle button
* Added proper mobile accessibility for theme switching
* Preserved existing desktop navbar layout
* Improved responsive navigation experience across different screen
sizes
## Pillar
* [x] 🛠️ Other (Bug fix, refactoring, docs)
## Visual Preview
### Desktop View
<img width="1349" height="96" alt="image"
src="https://github.com/user-attachments/assets/fb039ef7-1c7e-49bd-94d0-60994a4888e4"
/>
### Tablet / Large Mobile View
<img width="703" height="98" alt="image"
src="https://github.com/user-attachments/assets/6efbe57b-8a20-490a-a2e9-36ef3e1b20b0"
/>
<img width="704" height="175" alt="image"
src="https://github.com/user-attachments/assets/c4dac4e8-2995-4789-ae1f-96f53ea8d241"
/>
### Mobile View
<img width="614" height="91" alt="image"
src="https://github.com/user-attachments/assets/0c608e44-d96a-44b5-8f74-bdc9b5942b4a"
/>
<img width="620" height="215" alt="image"
src="https://github.com/user-attachments/assets/146c5960-1501-439f-a6e4-88df9c8d3976"
/>
## 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.
* [x] My commits follow the Conventional Commits format.
* [x] I have made sure that only relevant files are included in this PR.
* [x] I have made sure that I have only one commit to merge in this PR.
* [x] The UI remains responsive across different screen sizes.
* [x] (Recommended) I joined the CommitPulse Discord community for
contributor discussions, mentorship, and faster PR support.
@JhaSourav07 Kindly review this PR. Thank you!1 file changed
Lines changed: 30 additions & 9 deletions
File tree
- app/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
173 | 183 | | |
174 | 184 | | |
175 | 185 | | |
| |||
189 | 199 | | |
190 | 200 | | |
191 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
192 | 213 | | |
193 | 214 | | |
194 | 215 | | |
| |||
0 commit comments