-
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-1375): fix SellWithArtsyRecentlySold Rail layout #11015
fix(ONYX-1375): fix SellWithArtsyRecentlySold Rail layout #11015
Conversation
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.
Thanks! 🙏
@@ -103,7 +104,9 @@ const RecentlySoldArtworksRail: React.FC<RecentlySoldArtworksRailProps> = ({ | |||
onPress={() => { | |||
onPress?.(item, index) | |||
}} | |||
metaContainerStyles={{ height: 100 }} | |||
metaContainerStyles={{ | |||
height: ARTWORK_RAIL_TEXT_CONTAINER_HEIGHT + 10, |
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.
question: Where does this + 10
come from?
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.
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.
Could we achieve the same by making the overflow visible (e.g. overflow: visible
)? I would prefer this solution instead of adding padding for this special case. Or we could make the height of the meta text container flexible which would be the most natural way for me to solve the issue (imagine the text needs to have 3 or 4 lines which could theoretically happen). 🤔
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.
same thought here - You can also set the metaCardHeight to 110 if 100 is not enough
@@ -103,7 +104,9 @@ const RecentlySoldArtworksRail: React.FC<RecentlySoldArtworksRailProps> = ({ | |||
onPress={() => { | |||
onPress?.(item, index) | |||
}} | |||
metaContainerStyles={{ height: 100 }} | |||
metaContainerStyles={{ | |||
height: PixelRatio.getFontScale() * 100, |
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 PR resolves ONYX-1375
Description
After the latest redesign and refactoring the UI of the SellWithArtsyRecentlySold Rail does not look correct.
Let’s adjust it to make the data on the artwork card assessable
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.