Skip to content
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

Bug : Image Preview Overflows Container in Venue Modal and Advertisement Post Card #3192

Closed
yugal07 opened this issue Jan 7, 2025 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers ui/ux issue related and being worked with the figma file of the Admin UI

Comments

@yugal07
Copy link

yugal07 commented Jan 7, 2025

Describe the bug
The image preview in the Venue Modal and Advertisement Post overflows the container and doesn't scale properly, causing parts of the image to go out of the modal's frame.

To Reproduce
Steps to reproduce the behavior:

  1. Login as an admin
  2. Navigate to venue section or Advertisement section
  3. Click on Create Venue/Edit venue or Create Advertisement
  4. Upload a file in image section

Expected behavior
The image preview should scale to fit within the container without overflowing. It should adjust its size to fit within the frame, either by cropping or resizing while maintaining its aspect ratio.

Actual behavior
The image overflows or is not properly scaled within the container. Parts of the image may go outside the modal frame, leading to a broken layout.

Screenshots
Before
Screenshot from 2025-01-07 02-22-54
Screenshot from 2025-01-07 02-22-04

After
Screenshot from 2025-01-07 19-24-56
Screenshot from 2025-01-07 02-54-56

Additional details
I have Already Solved This issue on my Local Machine and am Ready to raise PR for the same

Potential internship candidates

Please read this if you are planning to apply for a Palisadoes Foundation internship

@yugal07 yugal07 added the bug Something isn't working label Jan 7, 2025
@github-actions github-actions bot added ui/ux issue related and being worked with the figma file of the Admin UI unapproved good first issue Good for newcomers labels Jan 7, 2025
@yugal07
Copy link
Author

yugal07 commented Jan 7, 2025

Hello @palisadoes I would like to take on this issue as I have already resolved it on my local machine and am now ready to raise a PR with the fix.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers ui/ux issue related and being worked with the figma file of the Admin UI
Projects
Development

No branches or pull requests

3 participants