mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 21:07:04 +05:30
fix(deps): upgrade compose-bom
This commit is contained in:
parent
741e82a425
commit
cbaa098005
3 changed files with 4 additions and 4 deletions
1
.github/renovate.json5
vendored
1
.github/renovate.json5
vendored
|
@ -47,7 +47,6 @@
|
||||||
{
|
{
|
||||||
"matchPackageNames": [
|
"matchPackageNames": [
|
||||||
"com.squareup.anvil",
|
"com.squareup.anvil",
|
||||||
"dev.chrisbanes.compose:compose-bom",
|
|
||||||
],
|
],
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
},
|
},
|
||||||
|
|
|
@ -16,6 +16,7 @@ import androidx.compose.foundation.layout.ExperimentalLayoutApi
|
||||||
import androidx.compose.foundation.layout.FlowRow
|
import androidx.compose.foundation.layout.FlowRow
|
||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
import androidx.compose.foundation.layout.Spacer
|
import androidx.compose.foundation.layout.Spacer
|
||||||
|
import androidx.compose.foundation.layout.absoluteOffset
|
||||||
import androidx.compose.foundation.layout.fillMaxWidth
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.height
|
import androidx.compose.foundation.layout.height
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
|
@ -30,7 +31,6 @@ import androidx.compose.material.icons.filled.Favorite
|
||||||
import androidx.compose.material.icons.filled.FavoriteBorder
|
import androidx.compose.material.icons.filled.FavoriteBorder
|
||||||
import androidx.compose.material3.Badge
|
import androidx.compose.material3.Badge
|
||||||
import androidx.compose.material3.BadgedBox
|
import androidx.compose.material3.BadgedBox
|
||||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
|
||||||
import androidx.compose.material3.HorizontalDivider
|
import androidx.compose.material3.HorizontalDivider
|
||||||
import androidx.compose.material3.Icon
|
import androidx.compose.material3.Icon
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
|
@ -186,7 +186,6 @@ private fun SaveButton(
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
|
||||||
private fun CommentsButton(
|
private fun CommentsButton(
|
||||||
commentCount: Int?,
|
commentCount: Int?,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
|
@ -197,6 +196,8 @@ private fun CommentsButton(
|
||||||
if (commentCount != null) {
|
if (commentCount != null) {
|
||||||
Badge(
|
Badge(
|
||||||
containerColor = MaterialTheme.colorScheme.tertiaryContainer,
|
containerColor = MaterialTheme.colorScheme.tertiaryContainer,
|
||||||
|
// Required to make the badge label look visually okay
|
||||||
|
modifier = Modifier.absoluteOffset(y = (-8).dp),
|
||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
text = commentCount.toString(),
|
text = commentCount.toString(),
|
||||||
|
|
|
@ -24,7 +24,7 @@ androidx-activity-compose = "androidx.activity:activity-compose:1.8.0"
|
||||||
androidx-benchmark-macro-junit4 = { module = "androidx.benchmark:benchmark-macro-junit4", version.ref = "benchmark" }
|
androidx-benchmark-macro-junit4 = { module = "androidx.benchmark:benchmark-macro-junit4", version.ref = "benchmark" }
|
||||||
androidx-browser = "androidx.browser:browser:1.6.0"
|
androidx-browser = "androidx.browser:browser:1.6.0"
|
||||||
androidx-compose-animation = { module = "androidx.compose.animation:animation" }
|
androidx-compose-animation = { module = "androidx.compose.animation:animation" }
|
||||||
androidx-compose-bom = "dev.chrisbanes.compose:compose-bom:2023.11.00-alpha01"
|
androidx-compose-bom = "dev.chrisbanes.compose:compose-bom:2023.12.00-alpha01"
|
||||||
androidx-compose-foundation = { module = "androidx.compose.foundation:foundation" }
|
androidx-compose-foundation = { module = "androidx.compose.foundation:foundation" }
|
||||||
androidx-compose-glance = { module = "androidx.glance:glance-appwidget", version.ref = "glance" }
|
androidx-compose-glance = { module = "androidx.glance:glance-appwidget", version.ref = "glance" }
|
||||||
androidx-compose-glance-m3 = { module = "androidx.glance:glance-material3", version.ref = "glance" }
|
androidx-compose-glance-m3 = { module = "androidx.glance:glance-material3", version.ref = "glance" }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue