Fix track search item not filling width if content is too short

(cherry picked from commit e5f83d0c6e0a0e55d35dd3a32e71817447824df0)
This commit is contained in:
arkon 2023-09-17 11:03:39 -04:00 committed by Jobobby04
parent 48ddc4855b
commit 47cf4c135d

View File

@ -223,6 +223,7 @@ private fun SearchResultItem(
val borderColor = if (selected) MaterialTheme.colorScheme.outline else Color.Transparent val borderColor = if (selected) MaterialTheme.colorScheme.outline else Color.Transparent
Box( Box(
modifier = Modifier modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 12.dp) .padding(horizontal = 12.dp)
.clip(shape) .clip(shape)
.background(MaterialTheme.colorScheme.surface) .background(MaterialTheme.colorScheme.surface)