Skip to content

Commit

Permalink
ui: If License doesn't have SPDX then don't add extra padding
Browse files Browse the repository at this point in the history
  • Loading branch information
AChep committed Dec 31, 2024
1 parent d91e94b commit 82af78d
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,12 @@ private fun LicenseItem(
color = LocalContentColor.current
.combineAlpha(MediumEmphasisAlpha),
)
Spacer(
modifier = Modifier
.height(8.dp),
)
if (item.spdxLicenses.isNotEmpty()) {
Spacer(
modifier = Modifier
.height(8.dp),
)
}
FlowRow(
verticalArrangement = Arrangement.spacedBy(8.dp),
horizontalArrangement = Arrangement.spacedBy(8.dp),
Expand Down

0 comments on commit 82af78d

Please sign in to comment.