-
Notifications
You must be signed in to change notification settings - Fork 262
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 margins and insets on Home scene #4755
Conversation
19e12f1
to
b789f98
Compare
Broken on Android |
147f2d5
to
b87f4da
Compare
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.
Wallet list margins didn't work for both platforms. Also I updated the task to include tx list scene since it also used the undoInsets
f879682
to
3ffdc75
Compare
3ffdc75
to
3d50694
Compare
onScroll={handleScroll} | ||
/> | ||
</View> | ||
{({ insetStyle }) => ( |
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 change would break the "underflow" of the scroll for this scene. Did you test to see if the tx list scene appears underneath tabs and header?
@@ -189,7 +189,7 @@ export function TransactionListRow(props: Props) { | |||
}) | |||
|
|||
return ( | |||
<CardUi4 icon={icon} onPress={handlePress} onLongPress={handleLongPress}> | |||
<CardUi4 icon={icon} onPress={handlePress} onLongPress={handleLongPress} marginRem={[0.5, 1]}> |
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.
I thought we wanted .5 rem around all components and then a 0.5 padding around the outer-most container component on a scene?
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.
Yes, ideally, but we're hacking around the fact that SceneHeader was never updated to follow these rules.
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.
Can you clarify what you mean when you refer to the SceneHeader component?
1d8a933
to
d7ad861
Compare
a53c674
to
7b95ff5
Compare
It looks like the SceneWrapper is incorrectly applying padding to scenes with tabs, but rather than fixing the SceneWrapper which is high-risk, just apply the padding manually.
We use the `overflow: 'visible'` rule on this scene to achieve the right margins without losing the ability for the SceneHeader to extend outside of the margins as necessary.
7b95ff5
to
dcf83db
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have: