fix: fix alignment of search bar placeholder text (#608)

This commit is contained in:
lazzzis 2024-02-12 00:04:46 -08:00 committed by GitHub
parent 8c11757be4
commit 5b51e0bff7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,6 +19,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalFocusManager
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.input.ImeAction
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import me.ash.reader.R
import me.ash.reader.domain.model.constant.ElevationTokens
@ -78,6 +79,8 @@ fun SearchBar(
text = placeholder,
style = MaterialTheme.typography.bodyLarge,
color = MaterialTheme.colorScheme.onSurfaceVariant,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
},
textStyle = MaterialTheme.typography.bodyLarge,