Hide overflow when there are no items (#684)

This commit is contained in:
David Perez
2024-01-19 13:04:07 -06:00
committed by Álison Fernandes
parent cf930438c2
commit 13f5467544

View File

@@ -114,15 +114,17 @@ fun BitwardenListItem(
}
}
IconButton(
onClick = { shouldShowDialog = true },
) {
Icon(
painter = painterResource(id = R.drawable.ic_more_horizontal),
contentDescription = stringResource(id = R.string.options),
tint = MaterialTheme.colorScheme.onSurfaceVariant,
modifier = Modifier.size(24.dp),
)
if (selectionDataList.isNotEmpty()) {
IconButton(
onClick = { shouldShowDialog = true },
) {
Icon(
painter = painterResource(id = R.drawable.ic_more_horizontal),
contentDescription = stringResource(id = R.string.options),
tint = MaterialTheme.colorScheme.onSurfaceVariant,
modifier = Modifier.size(24.dp),
)
}
}
}