Add spacers to VaultItemIdentityContent, VaultItemSecureNoteContent, and VaultItemCardContent

This commit is contained in:
Patrick Honkonen
2025-02-27 12:05:09 -05:00
parent b6163cf53c
commit e8a98dd3ed
4 changed files with 12 additions and 1 deletions

View File

@@ -60,6 +60,9 @@ fun VaultItemCardContent(
isExpanded = isExpanded,
onExpandClick = { isExpanded = !isExpanded },
)
item {
Spacer(modifier = Modifier.height(height = 8.dp))
}
cardState.cardholderName?.let { cardholderName ->
item(key = "cardholderName") {
BitwardenTextField(

View File

@@ -59,6 +59,9 @@ fun VaultItemIdentityContent(
isExpanded = isExpanded,
onExpandClick = { isExpanded = !isExpanded },
)
item {
Spacer(modifier = Modifier.height(height = 8.dp))
}
identityState.identityName?.let { identityName ->
item(key = "identityName") {
IdentityCopyField(

View File

@@ -56,6 +56,9 @@ fun VaultItemSecureNoteContent(
isExpanded = isExpanded,
onExpandClick = { isExpanded = !isExpanded },
)
item {
Spacer(modifier = Modifier.height(height = 8.dp))
}
commonState.notes?.let { notes ->
item(key = "notes") {
Spacer(modifier = Modifier.height(8.dp))

View File

@@ -112,7 +112,7 @@ fun LazyListScope.itemHeader(
}
if (relatedLocations.isEmpty()) {
item {
item(key = "noFolder") {
ItemLocationListItem(
vectorPainter = rememberVectorPainter(R.drawable.ic_folder),
text = stringResource(R.string.no_folder),
@@ -120,9 +120,11 @@ fun LazyListScope.itemHeader(
modifier = Modifier
.standardHorizontalMargin()
.fillMaxWidth()
.animateItem()
.cardStyle(
cardStyle = CardStyle.Bottom,
paddingVertical = 0.dp,
paddingHorizontal = 16.dp,
),
)
}