codecache icon indicating copy to clipboard operation
codecache copied to clipboard

Mobile Responsiveness Fix

Open notsoocool opened this issue 2 years ago • 24 comments

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:

  1. Home/All Snippets Page:

    • Snippet cards are not stacking properly on smaller screens.
    • Overflowing content or clipped text in certain areas.
  2. Add Snippet Page:

    • Form elements are not resizing correctly on mobile, leading to horizontal scrolling.
  3. Profile Page:

    • User submissions, bookmarks, and ratings need better layout adjustments for mobile.
  4. Admin Panel:

    • Buttons and tables should be optimized for touch interactions.
  5. 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:

  1. Open the website on a mobile device or resize the browser window to a small screen size.
  2. Navigate through the various pages to observe responsiveness issues.

Suggested Fixes:

  • Implement media queries to ensure proper scaling.
  • Use relative units like %, em, and rem where appropriate.
  • Consider CSS Grid/Flexbox for better layout adjustments on small screens.

notsoocool avatar Oct 15 '24 19:10 notsoocool

Assign It to me @notsoocool

inkerton avatar Oct 16 '24 08:10 inkerton

Hey can I work on this?

STSonyThomas avatar Oct 25 '24 15:10 STSonyThomas

@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

notsoocool avatar Oct 26 '24 12:10 notsoocool

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?

STSonyThomas avatar Oct 26 '24 14:10 STSonyThomas

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.

STSonyThomas avatar Oct 26 '24 14:10 STSonyThomas

Hey @notsoocool, Can I work on this issue?

www codecache tech_sign-up_sso-callback(Samsung Galaxy S8+) www codecache tech_sign-up_sso-callback(Samsung Galaxy S8+) (2) www codecache tech_sign-up_sso-callback(Samsung Galaxy S8+) (1)

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

coderKrysio avatar Oct 27 '24 09:10 coderKrysio

@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.

notsoocool avatar Oct 27 '24 12:10 notsoocool

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 avatar Oct 28 '24 08:10 coderKrysio

@coderKrysio perfect seams fine to me just contact @STSonyThomas to distribute the work load and you can go ahead.

notsoocool avatar Oct 28 '24 10:10 notsoocool

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?

coderKrysio avatar Oct 28 '24 16:10 coderKrysio

@STSonyThomas I am working on the first three pages that I have listed you can take the other two

  • admin panel
  • notification page

coderKrysio avatar Oct 28 '24 16:10 coderKrysio

yep sure

STSonyThomas avatar Oct 28 '24 16:10 STSonyThomas

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 avatar Oct 28 '24 16:10 coderKrysio

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.

notsoocool avatar Oct 30 '24 08:10 notsoocool

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

coderKrysio avatar Oct 30 '24 08:10 coderKrysio

Sure! Here’s how to set up MongoDB Atlas and get your connection string:

  1. Create Account: Go to MongoDB Atlas and create an account.
  2. Create a Cluster: Set up a cluster with any name you prefer.
  3. Create Database: In the cluster, go to Browse Collections and create a new database.
  4. 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=CodeCacheDB with your database name, like so:
      mongodb+srv://<db_username>:<db_password>@codecachedb.bzrcs.mongodb.net/CodeSnippetsDB

This will be your MONGO_URI connection string.

notsoocool avatar Oct 30 '24 08:10 notsoocool

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!

notsoocool avatar Oct 30 '24 08:10 notsoocool

Sure! Here’s how to set up MongoDB Atlas and get your connection string:

  1. Create Account: Go to MongoDB Atlas and create an account.

  2. Create a Cluster: Set up a cluster with any name you prefer.

  3. Create Database: In the cluster, go to Browse Collections and create a new database.

  4. 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=CodeCacheDB with your database name, like so: mongodb+srv://<db_username>:<db_password>@codecachedb.bzrcs.mongodb.net/CodeSnippetsDB

This will be your MONGO_URI connection string.

the set up is done successfully thank you @notsoocool I will create a PR by tonight

coderKrysio avatar Oct 30 '24 09:10 coderKrysio

Hey @notsoocool, i did the exact same things but I am getting the auth error whenever I am opening the add snippets page

coderKrysio avatar Oct 30 '24 09:10 coderKrysio

Its because you have't successfully setup the clerk authentication

notsoocool avatar Oct 30 '24 09:10 notsoocool