Adds default banner image to LongFormPosts if none is found

This commit is contained in:
Vitor Pamplona
2023-03-23 09:04:44 -04:00
parent 3a76d176c5
commit ccd71a8023

View File

@@ -616,7 +616,14 @@ private fun LongFormHeader(noteEvent: LongTextNoteEvent, note: Note, loggedIn: U
contentScale = ContentScale.FillWidth,
modifier = Modifier.fillMaxWidth()
)
}
} ?: Image(
painter = painterResource(R.drawable.profile_banner),
contentDescription = stringResource(R.string.profile_banner),
contentScale = ContentScale.FillWidth,
modifier = Modifier
.fillMaxWidth()
.height(150.dp)
)
Box(
Modifier