Reduced click effect area to the chip shape

This commit is contained in:
Abdelilah El Aissaoui 2021-11-17 04:42:35 +01:00
parent 1056e60f96
commit 9322691565

View File

@ -592,6 +592,9 @@ fun RefChip(
) { ) {
Box( Box(
modifier = Modifier modifier = Modifier
.padding(horizontal = 4.dp)
.clip(RoundedCornerShape(16.dp))
.background(MaterialTheme.colors.primary)
.combinedClickable( .combinedClickable(
onDoubleClick = onCheckoutRef, onDoubleClick = onCheckoutRef,
onClick = {} onClick = {}
@ -601,10 +604,7 @@ fun RefChip(
items = contextMenuItemsList items = contextMenuItemsList
) { ) {
Row( Row(
modifier = modifier modifier = modifier,
.padding(horizontal = 4.dp)
.clip(RoundedCornerShape(16.dp))
.background(MaterialTheme.colors.primary),
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
) { ) {
Icon( Icon(