Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixes #1748 Extra padding above IME keyboard#1824

Merged
dessalines merged 1 commit into
LemmyNet:mainfrom
MV-GH:bug/1748
May 13, 2025
Merged

Fixes #1748 Extra padding above IME keyboard#1824
dessalines merged 1 commit into
LemmyNet:mainfrom
MV-GH:bug/1748

Conversation

@MV-GH

@MV-GH MV-GH commented May 11, 2025

Copy link
Copy Markdown
Collaborator

The imePadding seemed to also apply the navigationBar padding. Using this consumeWindowInsets made it only apply once.

Also refactored MarkdownTextField slightly to not have that required maxFillSize default as part of params and apply the same modifier twice.

Fixes #1748

image

@MV-GH MV-GH requested a review from dessalines as a code owner May 11, 2025 19:00
@MV-GH MV-GH requested a review from Copilot May 11, 2025 19:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the extra padding above the IME keyboard and refactors MarkdownTextField usage by preventing duplicate modifier applications. Key changes include:

  • Replacing redundant .imePadding() calls with a combination of .consumeWindowInsets(padding) and .imePadding() in the proper order.
  • Removing unnecessary .fillMaxWidth() modifiers from MarkdownTextField invocations.
  • Adjusting modifier chains across multiple UI components for consistent layout behavior.

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
AccountSettings.kt Updated modifier chain to add vertical scrolling and use consumeWindowInsets to prevent duplicated insets.
CreateReport.kt Removed fillMaxWidth() from MarkdownTextField and introduced consumeWindowInsets into the modifier chain.
RemoveItem.kt Similar change as CreateReport.kt; replaced fillMaxWidth() with consumeWindowInsets.
RegistrationApplications.kt Eliminated redundant fillMaxWidth() usage on text fields.
PrivateMessageReplyScreen.kt Added consumeWindowInsets to the modifier chain to correct keyboard inset behavior.
PrivateMessageReply.kt Removed fillMaxWidth() from MarkdownTextField to align with the refactor.
CreatePrivateMessageScreen.kt Updated modifier chain with consumeWindowInsets in place of fillMaxWidth() for consistent layout.
PostComposables.kt Removed unnecessary fillMaxWidth() modifier from the text field.
LoginScreen.kt Introduced consumeWindowInsets into the modifier chain for layout consistency.
Login.kt Removed imePadding from the modifier chain to prevent unwanted padding behavior.
InputFields.kt Revised MarkdownTextField definition to leverage a new modifier chain that ensures full width using fillMaxWidth() before focus handling.
CommentReplyScreen.kt Integrated consumeWindowInsets into various modifier chains enhancing the text inputs’ layout.
CommentReply.kt Removed recurring fillMaxWidth() modifiers from multiple text fields for consistent styling.
CommentEdit.kt Updated modifier chain by substituting fillMaxWidth() with consumeWindowInsets to correct padding behavior.
BanPerson.kt Removed redundant fillMaxWidth() modifier on the text field to streamline layout.

@dessalines dessalines left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@dessalines dessalines merged commit ab02da9 into LemmyNet:main May 13, 2025
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.

Padding above IME keyboard in createPosts

3 participants