Skip to content

Commit 7f33296

Browse files
lbjunqLúcio BJ
andauthored
hotfix/BA-2901-fix-posts-image-distortion-to-fit-space (#305)
[BA-2900](https://silverlogic.atlassian.net/browse/BA-2900) ✅ The image is stretching vertically, leading to a poor visual presentation Key details Description Acceptance Criteria Steps to Reproduce: Login in baseapp, Navigate to localhosts:3000/posts Upload some images, add content and publish the posts. Actual Result: The image is stretching vertically, leading to a poor visual presentation Expected Result: Image resolution should maintain proper aspect ratio. Loom: https://www.loom.com/share/a19a917bd80b49389e6a4bc7a6e64e80 Approvd https://app.approvd.io/silverlogic/BA/stories/42093 [BA-2900]: https://silverlogic.atlassian.net/browse/BA-2900?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ Fix screenshot: <img width="2908" height="1850" alt="Screenshot 2025-12-03 at 17 48 58" src="https://github.com/user-attachments/assets/5f3949c6-a51b-43e1-b3ef-d4005945c129" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fix for post images deforming when large — images now maintain correct aspect ratio and fit within the post layout. * **Style** * Improved image sizing and selection behavior in the content feed for more consistent display. * **Documentation** * Added changelog entry for version 1.4.8. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Lúcio BJ <[email protected]>
1 parent 92147fa commit 7f33296

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

packages/components/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @baseapp-frontend/components
22

3+
## 1.4.8
4+
5+
### Patch Changes
6+
7+
- Fix for posts images being deformed if too big
8+
39
## 1.4.7
410

511
### Patch Changes

packages/components/modules/content-feed/web/PostImageSlide/styled.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ import { styled } from '@mui/material'
22

33
export const ImageSlide = styled('img')(() => ({
44
height: '100%',
5+
width: '100%',
6+
objectFit: 'contain',
57
userSelect: 'none',
68
}))

packages/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@baseapp-frontend/components",
33
"description": "BaseApp components modules such as comments, notifications, messages, and more.",
4-
"version": "1.4.7",
4+
"version": "1.4.8",
55
"sideEffects": false,
66
"scripts": {
77
"build": "rm -rf dist && pnpm relay && tsc --build tsconfig.build.json",

0 commit comments

Comments
 (0)