mirror of
https://github.com/bitwarden/android.git
synced 2026-03-22 06:11:38 -05:00
Add spacers to VaultItemIdentityContent, VaultItemSecureNoteContent, and VaultItemCardContent
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user