Skip to content

Commit

Permalink
Fixed Library badge cutoff
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoyong committed Jun 23, 2024
1 parent fd71cfb commit 77cae4d
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 77cae4d

Please sign in to comment.