-
Notifications
You must be signed in to change notification settings - Fork 579
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
fix(ONYX-1380): Activity Item screen spacing #10988
Conversation
0eb932b
to
90616fc
Compare
This PR contains the following changes:
|
@@ -127,7 +127,6 @@ export const MasonryInfiniteScrollArtworkGrid: React.FC<MasonryInfiniteScrollArt | |||
contentContainerStyle={{ | |||
// No paddings are needed for single column grids | |||
paddingHorizontal: getAdjustedNumColumns() === 1 ? 0 : space(2), | |||
paddingBottom: artworks.length === 1 ? 0 : space(6), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want to display the extra spacing if there are no more artworks to load because on the Activity screen we display content below the list.
@@ -48,14 +48,15 @@ export const NotificationArtworkList: FC<NotificationArtworkListProps> = (props) | |||
onScroll={scrollHandler} | |||
partnerOffer={partnerOffer} | |||
priceOfferMessage={priceOfferMessage} | |||
style={{ paddingBottom: 120 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bottom padding seems to be unnecessary as well...
6dc1a55
to
3fca2a8
Compare
@@ -140,7 +139,7 @@ export const MasonryInfiniteScrollArtworkGrid: React.FC<MasonryInfiniteScrollArt | |||
refreshControl={refreshControl} | |||
renderItem={renderItem} | |||
ListFooterComponent={ | |||
<AnimatedMasonryListFooter shouldDisplaySpinner={shouldDisplaySpinner} /> | |||
hasMore ? <AnimatedMasonryListFooter shouldDisplaySpinner={shouldDisplaySpinner} /> : null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want to display the spinner component when there are no more artworks to be loaded because it creates extra spacing when we display content below the artwork list (e.g., on the Activity screen).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 🌟
It would be good to also add screenshots for Android as well :)
@MrSltun, I'm struggling to get the Android simulator to work. Do you have some time to help me test the change on Android? 🙏 I can help create test notifications from these instructions. |
Co-authored-by: Mounir Dhahri <[email protected]>
4618e9a
to
b00ac65
Compare
I'll merge this PR now and make sure the changes get tested on Android. I plan to do some follow-up refactoring on the Activity screen which needs to be tested very carefully anyway 🚀 |
Resolves https://artsyproduct.atlassian.net/browse/ONYX-1380
Description
The spacing below the artwork list on the Activity Item screen is a bit off. This might be related to some adjustments made to the partner offer notification screen.
I've tested this fix with all notification types, and it seems to work. But I'm not completely sure about the Partner offer's note and commercial actions. 🤔
PR Checklist
To the reviewers 👀
Changelog updates
Changelog updates
Cross-platform user-facing changes
iOS user-facing changes
Android user-facing changes
Dev changes
Need help with something? Have a look at our docs, or get in touch with us.