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

Chore: Fix window insets usage #345

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Conversation

FelberMartin
Copy link
Collaborator

Problem Description

This is a followup to #320. This PR fixes the usage of WindowInsets in the context of the ReplyTextField.

Changes

  • Remove the consumption of WindowInsets.systembars and use the navigationBarsPadding() at the proper composables further down the UI tree.
  • Remove scaffold in MetisPostListHandler as it messed with the padding values (probably because this scaffold was nested inside another scaffold)

Steps for testing

Ensure that the paddings around the ReplyTextField are not behaving weirdly. Test with different navigation modes (gesture navigation, 3 buttonnavigation)

@FelberMartin FelberMartin added the ready for review This PR can be reviewed label Jan 27, 2025
@FelberMartin FelberMartin self-assigned this Jan 27, 2025
Copy link
Contributor

@julian-wls julian-wls left a comment

Choose a reason for hiding this comment

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

Did not observe any padding issues or weird behavior while testing.
Unseen-FAB in chat still looks placed correctly.

@FelberMartin FelberMartin added ready to merge This PR can be merged and removed ready for review This PR can be reviewed labels Jan 28, 2025
@FelberMartin FelberMartin merged commit 9794eee into develop Jan 28, 2025
5 checks passed
@FelberMartin FelberMartin deleted the chore/fix-window-insets-usage branch January 28, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge This PR can be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants