Fix title overflow
This commit is contained in:
1 parent
32182a7791
commit
0aba5907b0
1 file changed
+2
-1
@@ -74,6 +74,7 @@ import androidx.compose.ui.platform.LocalDensity
|
||||
import androidx.compose.ui.platform.LocalWindowInfo
|
||||
import androidx.compose.ui.res.colorResource
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.util.lerp
|
||||
import androidx.compose.ui.viewinterop.AndroidViewBinding
|
||||
@@ -326,7 +327,7 @@ fun SearchBarScreen(
|
||||
}
|
||||
active = it
|
||||
},
|
||||
title = title?.let { { Text(it) } },
|
||||
title = title?.let { { Text(it, overflow = TextOverflow.Ellipsis) } },
|
||||
placeholder = searchFieldHint?.let { { Text(it) } },
|
||||
leadingIcon = {
|
||||
if (active) {
|
||||
|
||||
Reference in new issue
Block a user