Skip to content

Commit

Permalink
Merge pull request #996 from lhoyong/library-badge
Browse files Browse the repository at this point in the history
Fix Library badge cutoff
  • Loading branch information
mikepenz authored Jun 23, 2024
2 parents fd71cfb + 77cae4d commit afd8599
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ internal inline fun LazyListScope.libraryItems(
}
}

@OptIn(ExperimentalLayoutApi::class)
@Composable
internal fun Library(
library: Library,
Expand Down Expand Up @@ -290,7 +291,7 @@ internal fun Library(
)
}
if (showLicenseBadges && library.licenses.isNotEmpty()) {
Row {
FlowRow {
library.licenses.forEach {
Badge(
modifier = Modifier.padding(padding.badgePadding),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ internal inline fun LazyListScope.libraryItems(
}
}

@OptIn(ExperimentalMaterial3Api::class)
@OptIn(ExperimentalMaterial3Api::class, ExperimentalLayoutApi::class)
@Composable
internal fun Library(
library: Library,
Expand Down Expand Up @@ -292,7 +292,7 @@ internal fun Library(
)
}
if (showLicenseBadges && library.licenses.isNotEmpty()) {
Row {
FlowRow {
library.licenses.forEach {
Badge(
modifier = Modifier.padding(padding.badgePadding),
Expand Down

0 comments on commit afd8599

Please sign in to comment.