-
Notifications
You must be signed in to change notification settings - Fork 242
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]: Profile Picture Stretching in Customer Opinion Cards on /html-files/services #452
Comments
Hi there! Thanks for opening this issue @sagarbendale2004!. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible. |
@Anjaliavv51 "Hi, I noticed the issue with the stretched profile pictures in the customer opinion cards. I’d like to work on fixing the image aspect ratio to ensure consistency. Could you please assign this to me?" |
@sagarbendale2004 go ahead. |
<!-- ISSUE & PR TITLE SHOULD BE SAME--> ## Description #452 fixes This PR addresses the issue of distorted profile pictures on the /html-files/services route. Previously, the customer opinion cards displayed profile pictures with inconsistent aspect ratios, causing some images to stretch vertically or horizontally, which made the layout appear unbalanced and the images look distorted. ## Fix Details: - Added CSS properties to ensure profile pictures maintain their aspect ratio, preventing distortion. - Applied consistent styling to all images, ensuring they fit within the designated space while preserving their original dimensions. ## Changes Made: Updated CSS for the profile pictures: - Used object-fit: cover; to ensure images maintain their aspect ratio and fill the container without distortion. - Set a fixed width and height for the images to ensure consistent layout across cards. ## Screenshots ## Before - ![Screenshot 2024-10-13 164233](https://github.com/user-attachments/assets/c0f8f82f-01b3-4ba6-9c01-3e9cd37bb8e7) ## After - ![Screenshot 2024-10-13 164318](https://github.com/user-attachments/assets/3d0e096d-bebb-41c5-b16a-2871b3ab312b) ## Checklist <!-- [X] - put a cross/X inside [] to check the box --> - [x] I have gone through the [contributing guide](https://github.com/Anjaliavv51/Retro) - [x] I have updated my branch and synced it with project `main` branch before making this PR - [x] I have performed a self-review of my code - [x] I have tested the changes thoroughly before submitting this pull request. - [x] I have provided relevant issue numbers, screenshots, and videos after making the changes. - [x] I have commented my code, particularly in hard-to-understand areas.
@sagarbendale2004 I also raised the same issue and created a PR but I don't know it was not accepted. (issue# 460) |
Is there an existing issue for this?
Describe the bug
On the /html-files/services route, the profile pictures in the customer opinion cards are inconsistently displayed. Some images are stretched vertically, while others are stretched horizontally, making the layout appear unbalanced and the images look distorted.
Steps to Reproduce:
Actual Behavior:
Expected behavior
Add ScreenShots
What browsers are you seeing the problem on?
No response
Record
The text was updated successfully, but these errors were encountered: