Conversation
dcshzj
reviewed
Mar 17, 2026
| @@ -121,7 +133,6 @@ const createRowStyles = tv({ | |||
| }, | |||
| hasFallbackImage: { | |||
| true: { image: "h-auto w-2/3 object-contain" }, | |||
Contributor
There was a problem hiding this comment.
question: would this object-contain conflict with the imageFit if cover was selected?
Contributor
Author
There was a problem hiding this comment.
oddly enough, no. attaching a vid so you can see what it looks like
Screen.Recording.2026-03-18.at.11.13.51.mov
sehyunidaaa
previously requested changes
Mar 17, 2026
Contributor
sehyunidaaa
left a comment
There was a problem hiding this comment.
@seaerchin thanks!
- This story is crashing, can't review child page editing for selecting contain/fit and column number
- Are we changing the default columns to 2? (we discussed yesterday that all sites are either using the rows or 2-column boxes. if we shift default to 3, it will be jarring to all these sites)
- Didn't review template here - reviewing template side changes in the other Chromatic, hope that's okay
Contributor
Author
|
994ef39 to
baf9b0c
Compare
dcshzj
approved these changes
Mar 19, 2026
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Mar 19, 2026
2191573 to
ba7bb7d
Compare
5377e8c to
56229e2
Compare
ba7bb7d to
f8e8825
Compare
f8e8825 to
b1aaa9f
Compare
Contributor
Author
Merge activity
|
seaerchin
added a commit
that referenced
this pull request
Mar 19, 2026
## Problem Closes ISOM-2179 Child pages block previously did not support the "contain" image fit variant, which is needed for profile pages use case where images may have white backgrounds and need to fit within their container rather than being cropped. ## Solution **Breaking Changes** - [ ] Yes - this PR contains breaking changes - [x] No - this PR is backwards compatible **Features**: - Added `imageFit` property to ChildrenPages schema with options: "cover" (default) and "contain" - Created reusable `ImageFitSchema` in `~/schemas/internal` for consistent image fit options across components - Added `IMAGE_FIT` constant in `~/interfaces/constants` for type-safe image fit values **Improvements**: - Added `isFallback` prop to InfoCards to style fallback images differently (centered and contained) ## Before & After Screenshots **boxes variant w contain** <img width="1162" height="523" alt="image" src="https://github.com/user-attachments/assets/3c473857-6dc1-45af-83be-49bc26bc9aac" /> **boxes variant w cover** <img width="1161" height="524" alt="image" src="https://github.com/user-attachments/assets/a4075707-4aaf-4934-a141-cb0d8cef3e68" /> **rows variant w contain** <img width="1165" height="203" alt="image" src="https://github.com/user-attachments/assets/752953c7-73d6-4489-83b1-3701ec440bbd" /> **rows variant w cover** <img width="1163" height="225" alt="image" src="https://github.com/user-attachments/assets/700568df-b461-45ce-855a-567dd6a02102" /> ## Tests - Added Storybook stories for `RowsWithContainAndThumbnail` and `BoxesWithContainAndThumbnail` in ChildrenPages - Added IndexPage stories for `RowsWithContainAndImageAndDescription` and `BoxesWithContainAndImageAndDescription`
seaerchin
added a commit
that referenced
this pull request
Mar 19, 2026
## Problem Closes ISOM-2179 Child pages block previously did not support the "contain" image fit variant, which is needed for profile pages use case where images may have white backgrounds and need to fit within their container rather than being cropped. ## Solution **Breaking Changes** - [ ] Yes - this PR contains breaking changes - [x] No - this PR is backwards compatible **Features**: - Added `imageFit` property to ChildrenPages schema with options: "cover" (default) and "contain" - Created reusable `ImageFitSchema` in `~/schemas/internal` for consistent image fit options across components - Added `IMAGE_FIT` constant in `~/interfaces/constants` for type-safe image fit values **Improvements**: - Added `isFallback` prop to InfoCards to style fallback images differently (centered and contained) ## Before & After Screenshots **boxes variant w contain** <img width="1162" height="523" alt="image" src="https://github.com/user-attachments/assets/3c473857-6dc1-45af-83be-49bc26bc9aac" /> **boxes variant w cover** <img width="1161" height="524" alt="image" src="https://github.com/user-attachments/assets/a4075707-4aaf-4934-a141-cb0d8cef3e68" /> **rows variant w contain** <img width="1165" height="203" alt="image" src="https://github.com/user-attachments/assets/752953c7-73d6-4489-83b1-3701ec440bbd" /> **rows variant w cover** <img width="1163" height="225" alt="image" src="https://github.com/user-attachments/assets/700568df-b461-45ce-855a-567dd6a02102" /> ## Tests - Added Storybook stories for `RowsWithContainAndThumbnail` and `BoxesWithContainAndThumbnail` in ChildrenPages - Added IndexPage stories for `RowsWithContainAndImageAndDescription` and `BoxesWithContainAndImageAndDescription`
2 tasks
seaerchin
added a commit
that referenced
this pull request
Mar 19, 2026
* Revert "refactor: update RowLayout styling to match InfoCards design (#1891)" This reverts commit 30209a1. * Revert "feat(components): support contain image variant for child pages (#1889)" This reverts commit 3e003a3. * Revert "refactor: centralize isExternalUrl check into ImageClient (#1865)" This reverts commit 56229e2.
seaerchin
added a commit
that referenced
this pull request
Mar 19, 2026
## Problem Closes ISOM-2179 Child pages block previously did not support the "contain" image fit variant, which is needed for profile pages use case where images may have white backgrounds and need to fit within their container rather than being cropped. ## Solution **Breaking Changes** - [ ] Yes - this PR contains breaking changes - [x] No - this PR is backwards compatible **Features**: - Added `imageFit` property to ChildrenPages schema with options: "cover" (default) and "contain" - Created reusable `ImageFitSchema` in `~/schemas/internal` for consistent image fit options across components - Added `IMAGE_FIT` constant in `~/interfaces/constants` for type-safe image fit values **Improvements**: - Added `isFallback` prop to InfoCards to style fallback images differently (centered and contained) ## Before & After Screenshots **boxes variant w contain** <img width="1162" height="523" alt="image" src="https://github.com/user-attachments/assets/3c473857-6dc1-45af-83be-49bc26bc9aac" /> **boxes variant w cover** <img width="1161" height="524" alt="image" src="https://github.com/user-attachments/assets/a4075707-4aaf-4934-a141-cb0d8cef3e68" /> **rows variant w contain** <img width="1165" height="203" alt="image" src="https://github.com/user-attachments/assets/752953c7-73d6-4489-83b1-3701ec440bbd" /> **rows variant w cover** <img width="1163" height="225" alt="image" src="https://github.com/user-attachments/assets/700568df-b461-45ce-855a-567dd6a02102" /> ## Tests - Added Storybook stories for `RowsWithContainAndThumbnail` and `BoxesWithContainAndThumbnail` in ChildrenPages - Added IndexPage stories for `RowsWithContainAndImageAndDescription` and `BoxesWithContainAndImageAndDescription`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
Closes ISOM-2179
Child pages block previously did not support the "contain" image fit variant, which is needed for profile pages use case where images may have white backgrounds and need to fit within their container rather than being cropped.
Solution
Breaking Changes
Features:
imageFitproperty to ChildrenPages schema with options: "cover" (default) and "contain"ImageFitSchemain~/schemas/internalfor consistent image fit options across componentsIMAGE_FITconstant in~/interfaces/constantsfor type-safe image fit valuesImprovements:
isFallbackprop to InfoCards to style fallback images differently (centered and contained)Before & After Screenshots
boxes variant w contain


boxes variant w cover
rows variant w contain


rows variant w cover
Tests
RowsWithContainAndThumbnailandBoxesWithContainAndThumbnailin ChildrenPagesRowsWithContainAndImageAndDescriptionandBoxesWithContainAndImageAndDescription