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(suite-native): bottomsheet container has fixed size #15853

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

vytick
Copy link
Contributor

@vytick vytick commented Dec 9, 2024

make fixed size container for bottomsheet not to jump

Related Issue

Resolve #15852

Screenshots:

Screen.Recording.2024-12-09.at.23.19.41.mov

@vytick vytick added the mobile Suite Lite issues and PRs label Dec 9, 2024
@vytick vytick requested a review from a team as a code owner December 9, 2024 22:22
Copy link

github-actions bot commented Dec 9, 2024

🚀 Expo preview is ready!

  • Project → trezor-suite-preview
  • Platforms → android, ios
  • Scheme → trezorsuitelite
  • Runtime Version → 17
  • More info

Learn more about 𝝠 Expo Github Action

Comment on lines 18 to 19
width: SCREEN_SIZE.width,
height: SCREEN_SIZE.height,
Copy link
Contributor

Choose a reason for hiding this comment

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

What about using EnvUtils instead?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, and the name screen_size is confusing since it is window size...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

EnvUtils use the same thing under the hood. But sure I can use it

Copy link
Member

Choose a reason for hiding this comment

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

Yes, that is why you should use it...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should probably then replace all usage of Dimensions.get('screen') and replace it by this through the app, because that is how it is being used for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed in f379a0f

Copy link
Member

Choose a reason for hiding this comment

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

Yes, we should... Thanks for this change!

@matejkriz matejkriz added the release-native Has to be included in the upcoming release. label Dec 10, 2024
@vytick
Copy link
Contributor Author

vytick commented Dec 10, 2024

/rebase

Copy link

@trezor-ci trezor-ci force-pushed the fi/native/bottomsheet-jumps branch from f379a0f to aac9d29 Compare December 10, 2024 10:27
@vytick vytick merged commit 3dc31ff into develop Dec 10, 2024
15 checks passed
@vytick vytick deleted the fi/native/bottomsheet-jumps branch December 10, 2024 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Suite Lite issues and PRs release-native Has to be included in the upcoming release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modals on tx details are a broken / jumping
3 participants