Skip to content

Commit

Permalink
[Chore/#6] TextField 입력이 길어질 시 클리어 버튼이 밀리는 현상을 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
SYAAINN committed Sep 18, 2024
1 parent 087e159 commit afa41ce
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ fun AuthTextField(
.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically
) {
Box {
Box(
modifier = Modifier.weight(1f)
) {
if (value.text.isEmpty()) {
Text(
text = hint,
Expand All @@ -71,7 +73,6 @@ fun AuthTextField(
}
innerTextField()
}
Spacer(modifier = Modifier.weight(1f))
Image(
painter = painterResource(id = R.drawable.ic_textfield_clear),
contentDescription = null,
Expand Down

0 comments on commit afa41ce

Please sign in to comment.