Skip to content
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 double padding in Dialog.InnerFlatList on web #5986

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented Oct 28, 2024

I changed the structure of Dialog.Inner around so padding works differently now. Unfortunately, Dialog.InnerFlatList tries to remove the horizontal padding, which then stopped working. This uses the correct prop to return the style to how it was

webInnerStyle,
]}>
]}
contentContainerStyle={[a.px_0]}>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main line, the rest are cleanups

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good, I think we want to also pass in the contentContainerStyle from props here too though.

Copy link

Old size New size Diff
7.91 MB 7.91 MB 87 B (0.00%)

Copy link
Contributor

@haileyok haileyok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with note above

@arcalinea arcalinea temporarily deployed to samuel/flatlist-padding - social-app PR #5986 October 29, 2024 12:32 — with Render Destroyed
@mozzius mozzius merged commit 80c5f23 into main Oct 29, 2024
5 of 6 checks passed
@mozzius mozzius deleted the samuel/flatlist-padding branch October 29, 2024 12:32
rshigg pushed a commit to rshigg/social-app that referenced this pull request Nov 2, 2024
rshigg pushed a commit to rshigg/social-app that referenced this pull request Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants