gauravsingh1281 / Rentalog.in--Frontend

Rentalog || Free Rent Management Web App For Landlords. With Rentalog, landlords can keep track of important information about their renters, including their names, addresses, and rental payment history.
https://visionary-fenglisu-db1b1d.netlify.app/
MIT License
96 stars 252 forks source link

[OTHER]: Carousel images are not visible and are not properly aligned on small devices at sign-in/sign-up page #384

Open sanjaraiy opened 1 month ago

sanjaraiy commented 1 month ago

πŸ“ Other Issue

Description
Carousel images are not visible and are not properly aligned on small devices at sign-in/sign-up page.


Type of Issue
Select the type of issue:


Steps to Reproduce (if applicable)
If the issue is related to a problem, please provide the steps to reproduce it:

  1. Go to the page with the carousel component.
  2. Resize the browser window to a small screen size or access the page on a mobile device.
  3. Scroll to the carousel section.
  4. Observe that the images are not visible or are misaligned.

Expected Behavior/Outcome (if applicable)
Carousel images should be visible and properly aligned on all screen sizes, especially small devices such as mobile phones.

Additional Context Screenshot 2024-10-15 211030

Environment (if applicable)
Provide relevant details about the environment where the issue occurred:

Checklist

github-actions[bot] commented 1 month ago

Congratulations, @sanjaraiy! πŸŽ‰ Thank you for creating your issue for Rentalog. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work! Should you have any queries or require guidance, do not hesitate to ask.

AbhaySingh7007 commented 1 month ago

//Hide Carousel on Small Screens(If you want to hide the carousel entirely on small devices, you can use the following CSS) @media (max-width: 600px) { .carousel { display: none; / Hides the carousel on small screens / } } //Responsive Image Alignment .carousel img { width: 100%; / Makes images responsive / height: auto; / Maintains aspect ratio / }

@media (max-width: 600px) { .carousel { / Optionally adjust styles for small screens / padding: 0; / Adjust padding if needed / } } //If you need to adjust or initialize the carousel differently on small screens, you can use JavaScript if (window.innerWidth <= 600) { // Initialize or adjust carousel settings for small screens // Example: $('.carousel').slick('unslick'); to disable a slick carousel } //Make sure to test your changes across different devices and browsers to ensure everything looks good and functions as intended

krishna7602 commented 1 month ago

assign me this task