Skip to content

Commit

Permalink
Make sure the save button can always be reached (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamGrzybkowski authored Jan 15, 2025
1 parent 886b673 commit 4122d75
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.BasicTextField
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.Icon
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.MaterialTheme
Expand Down Expand Up @@ -141,6 +143,7 @@ internal fun AltTextPage(
Box(
modifier = Modifier
.animateContentSize()
.verticalScroll(rememberScrollState())
.border(
width = 1.dp,
color = MaterialTheme.colorScheme.surfaceContainerHighest,
Expand Down Expand Up @@ -197,6 +200,7 @@ internal fun AltTextPage(
onValueChange = { newAltText ->
onEvent(AltTextEvent.AvatarAltTextChange(newAltText))
},
maxLines = 5,
textStyle = LocalTextStyle.current.copy(color = MaterialTheme.colorScheme.onSurface),
modifier = Modifier
.fillMaxSize(),
Expand Down

0 comments on commit 4122d75

Please sign in to comment.