From a03f9d2b9842ceccce16b32004cbb52649829e52 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 20 Feb 2024 11:30:11 -0500 Subject: [PATCH] Fixes position of the notification dot --- .../com/vitorpamplona/amethyst/ui/navigation/AppBottomBar.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppBottomBar.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppBottomBar.kt index 532a5bb602..102a143ebb 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppBottomBar.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppBottomBar.kt @@ -26,6 +26,7 @@ import android.view.ViewTreeObserver import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.RowScope +import androidx.compose.foundation.layout.size import androidx.compose.material3.Divider import androidx.compose.material3.Icon import androidx.compose.material3.MaterialTheme @@ -53,7 +54,7 @@ import com.vitorpamplona.amethyst.ui.theme.BottomTopHeight import com.vitorpamplona.amethyst.ui.theme.DividerThickness import com.vitorpamplona.amethyst.ui.theme.Font12SP import com.vitorpamplona.amethyst.ui.theme.Size0dp -import com.vitorpamplona.amethyst.ui.theme.Size10Modifier +import com.vitorpamplona.amethyst.ui.theme.Size10dp import com.vitorpamplona.amethyst.ui.theme.bottomIconModifier import kotlinx.collections.immutable.persistentListOf @@ -200,7 +201,7 @@ fun AddNotifIconIfNeeded( @Composable private fun NotificationDotIcon(modifier: Modifier) { - Box(Size10Modifier) { + Box(modifier.size(Size10dp)) { Box( modifier = MaterialTheme.colorScheme.bottomIconModifier, contentAlignment = Alignment.TopEnd,