fix: Improve mobile responsiveness and code block button visibility#294
fix: Improve mobile responsiveness and code block button visibility#294mohamedhadri wants to merge 6 commits intoOpenSource-Communities:mainfrom
Conversation
✅ Deploy Preview for learn-open-source ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
adiati98
left a comment
There was a problem hiding this comment.
Hey @mohamedhadri,
Thanks for the PR!
I want to address some things here:
-
I see that the code block buttons are now visible on the small screen. Thanks!
-
Do we need all the
!importanthere? It seems some of them are causing new issues, such as: -
The code block overflow is not addressed yet. You might want to visit the overflow CSS property to achieve this.
Can you please address these? Thank you.
|
@mohamedhadri if you can commit to fixing these issues, I'll go ahead and put a |
|
hey @adiati98,
-Enhanced Code Block UX on Mobile - Word Wrap Enabled by Default
|





Description
This PR fixes mobile responsiveness issues by implementing comprehensive CSS improvements and configuration updates to enhance the documentation site's usability on mobile devices. The changes ensure proper display, prevent horizontal scrolling, and improve accessibility for users on phones and tablets.
Key Improvements:
Mobile Responsiveness and Usability:
@media max-width: 996px) for:Configuration Enhancements:
docusaurus.config.jsto include aviewportmeta tag ensuring proper scaling and rendering on mobile devicesFiles Modified:
src/css/custom.css- Added 250+ lines of mobile-responsive CSSdocusaurus.config.js- Added viewport meta tag configurationRelated Issues
Closes #269
Mobile & Desktop Screenshots/Recordings
Before: Code block buttons invisible on mobile, horizontal scrolling required

After: Buttons always visible, no horizontal scroll, properly scaled images and layout

Steps to QA
Test on multiple screen sizes:
What GIF best describes this PR or how it makes you feel?
Because now mobile users can actually read the docs without doing the horizontal scroll dance! 📱✨