Mobile Responsiveness Fix
Description:
The CodeCache website needs improvements in its mobile responsiveness. Certain components and pages do not adapt well to smaller screens, which leads to elements being misaligned or overflowing the viewport. The following pages require attention:
-
Home/All Snippets Page:
- Snippet cards are not stacking properly on smaller screens.
- Overflowing content or clipped text in certain areas.
-
Add Snippet Page:
- Form elements are not resizing correctly on mobile, leading to horizontal scrolling.
-
Profile Page:
- User submissions, bookmarks, and ratings need better layout adjustments for mobile.
-
Admin Panel:
- Buttons and tables should be optimized for touch interactions.
-
Notification Page:
- Newly implemented notifications panel needs to be checked for mobile responsiveness.
Expected Behavior:
All pages should be fully responsive:
- Elements should stack vertically or resize appropriately.
- No horizontal scrolling or clipped content.
- Touch-friendly buttons and controls.
Steps to Reproduce:
- Open the website on a mobile device or resize the browser window to a small screen size.
- Navigate through the various pages to observe responsiveness issues.
Suggested Fixes:
- Implement media queries to ensure proper scaling.
- Use relative units like
%,em, andremwhere appropriate. - Consider CSS Grid/Flexbox for better layout adjustments on small screens.
Assign It to me @notsoocool
Hey can I work on this?
@STSonyThomas kindly get only one issue assigned first. Take some time, think on what issue you wanna work, and then i will assign you on that issue
Hey I am done with the backend of the chatbot for the prev issue. Waiting on Ananya to add the front-end. Should I still wait on getting that issue being merged before attempting this issue?
If #86 is not complete by tomorrow afternoon I'll complete that. But this would only take me like 2 hours to get done with hence I would love to be able to multi task.
Hey @notsoocool, Can I work on this issue?
I have gone through the underlying issue for the first three pages that you have mentioned
Proposed Solution:
- page 1: remove the sidebar and style the cards for mobile width (or the sidebar can be put as a scrollable filter bar above all the cards, acting as a fixed filter navbar)
- page 2: remove the tab functionality for the mobile width and introduce simple scrollable section with cards for ease, as user will be able to navigate well
- page 3: fix the styling bug for the form
these changes are just suggestions, you can improvise it further as per your liking also if possible can we do this in two pr because we are introducing responsiveness
@STSonyThomas let @coderKrysio handle this issue for day or two, till then you can look for other issues as well, i am ready to assign multiple people to single issues.
hey @notsoocool then can i distribute this in two pr? and work on the first three pages the next two can be taken by @STSonyThomas
@coderKrysio perfect seams fine to me just contact @STSonyThomas to distribute the work load and you can go ahead.
hey @notsoocool I have set the project locally with clerk env but unfortunately, I am not able to set the mongo_uri can you help me with this?
@STSonyThomas I am working on the first three pages that I have listed you can take the other two
- admin panel
- notification page
yep sure
yep sure
also if you find any way to set up the mongo_uri and please let me know I haven't use mongo before, only used neon
yep sure
also if you find any way to set up the mongo_uri and please let me know I haven't use mongo before, only used neon
@coderKrysio sorry i was quite busy with some work, i am free today just drop a comment here i will help you.
yep sure
also if you find any way to set up the mongo_uri and please let me know I haven't use mongo before, only used neon
@coderKrysio sorry i was quite busy with some work, i am free today just drop a comment here i will help you.
yeah I am not able to setup the mongo_uri can you help me with that done with clerk env just the mongo_uri is left, which is not allowing me to run the code locally
Sure! Here’s how to set up MongoDB Atlas and get your connection string:
- Create Account: Go to MongoDB Atlas and create an account.
- Create a Cluster: Set up a cluster with any name you prefer.
- Create Database: In the cluster, go to Browse Collections and create a new database.
- Connect:
- Go back to the Overview page.
- Add your current IP address under network settings.
- Get the connection string, which should look like this:
mongodb+srv://<db_username>:<db_password>@codecachedb.bzrcs.mongodb.net/retryWrites=true&w=majority&appName=CodeCacheDB - Modify it by replacing everything after
/from?retryWrites=true&w=majority&appName=CodeCacheDBwith your database name, like so:
mongodb+srv://<db_username>:<db_password>@codecachedb.bzrcs.mongodb.net/CodeSnippetsDB
This will be your MONGO_URI connection string.
If you’re still having trouble, just let me know, and I can walk you through it over a Discord stream. Happy to help clarify any part of the setup!
Sure! Here’s how to set up MongoDB Atlas and get your connection string:
Create Account: Go to MongoDB Atlas and create an account.
Create a Cluster: Set up a cluster with any name you prefer.
Create Database: In the cluster, go to Browse Collections and create a new database.
Connect:
- Go back to the Overview page.
- Add your current IP address under network settings.
- Get the connection string, which should look like this:
mongodb+srv://<db_username>:<db_password>@codecachedb.bzrcs.mongodb.net/retryWrites=true&w=majority&appName=CodeCacheDB- Modify it by replacing everything after
/from?retryWrites=true&w=majority&appName=CodeCacheDBwith your database name, like so:mongodb+srv://<db_username>:<db_password>@codecachedb.bzrcs.mongodb.net/CodeSnippetsDBThis will be your
MONGO_URIconnection string.
the set up is done successfully thank you @notsoocool I will create a PR by tonight
Hey @notsoocool, i did the exact same things but I am getting the auth error whenever I am opening the add snippets page
Its because you have't successfully setup the clerk authentication