Add content description to icon in app definition

This commit is contained in:
David Kaspar
2024-12-07 16:56:24 +01:00
parent 314cbe1a32
commit 39a7d98651
@@ -147,10 +147,10 @@ fun RenderAppDefinition(
var zoomImageDialogOpen by remember { mutableStateOf(false) } var zoomImageDialogOpen by remember { mutableStateOf(false) }
Box(Modifier.size(100.dp)) { Box(Modifier.size(100.dp)) {
it.picture?.let { it.picture?.let { picture ->
AsyncImage( AsyncImage(
model = it, model = picture,
contentDescription = null, contentDescription = it.name,
contentScale = ContentScale.FillWidth, contentScale = ContentScale.FillWidth,
modifier = modifier =
Modifier Modifier
@@ -163,7 +163,7 @@ fun RenderAppDefinition(
.background(MaterialTheme.colorScheme.background) .background(MaterialTheme.colorScheme.background)
.combinedClickable( .combinedClickable(
onClick = { zoomImageDialogOpen = true }, onClick = { zoomImageDialogOpen = true },
onLongClick = { clipboardManager.setText(AnnotatedString(it)) }, onLongClick = { clipboardManager.setText(AnnotatedString(picture)) },
), ),
) )
} }