-
Notifications
You must be signed in to change notification settings - Fork 142
fix: Improve mobile responsiveness and code block button visibility #294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: Improve mobile responsiveness and code block button visibility #294
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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! 📱✨