Fixes size of default banner when the profile is not loaded yet.

This commit is contained in:
Vitor Pamplona
2024-09-06 10:02:04 -04:00
parent a8a3bc8a6b
commit 6309aa1711

View File

@@ -1519,6 +1519,7 @@ fun DrawBanner(
model = banner, model = banner,
contentDescription = stringRes(id = R.string.profile_image), contentDescription = stringRes(id = R.string.profile_image),
contentScale = ContentScale.FillWidth, contentScale = ContentScale.FillWidth,
placeholder = painterResource(R.drawable.profile_banner),
modifier = modifier =
Modifier Modifier
.fillMaxWidth() .fillMaxWidth()
@@ -1544,7 +1545,7 @@ fun DrawBanner(
modifier = modifier =
Modifier Modifier
.fillMaxWidth() .fillMaxWidth()
.height(125.dp), .height(150.dp),
) )
} }
} }