Fab icon alignment.

This commit is contained in:
Benoit Marty 2023-06-22 10:11:19 +02:00 committed by Benoit Marty
parent fb09991793
commit 5ef52f063b

View file

@ -231,7 +231,12 @@ fun RoomListContent(
containerColor = MaterialTheme.colorScheme.primary,
onClick = onCreateRoomClicked
) {
Icon(resourceId = DrawableR.drawable.ic_edit_square, contentDescription = stringResource(id = R.string.screen_roomlist_a11y_create_message))
Icon(
// Correct icon alignment for better rendering.
modifier = Modifier.padding(start = 1.dp, bottom = 1.dp),
resourceId = DrawableR.drawable.ic_edit_square,
contentDescription = stringResource(id = R.string.screen_roomlist_a11y_create_message)
)
}
},
snackbarHost = {