Fixes position of the notification dot

This commit is contained in:
Vitor Pamplona
2024-02-20 11:30:11 -05:00
parent 1b93fc57cb
commit a03f9d2b98
@@ -26,6 +26,7 @@ import android.view.ViewTreeObserver
import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.RowScope import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Divider import androidx.compose.material3.Divider
import androidx.compose.material3.Icon import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme 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.DividerThickness
import com.vitorpamplona.amethyst.ui.theme.Font12SP import com.vitorpamplona.amethyst.ui.theme.Font12SP
import com.vitorpamplona.amethyst.ui.theme.Size0dp 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 com.vitorpamplona.amethyst.ui.theme.bottomIconModifier
import kotlinx.collections.immutable.persistentListOf import kotlinx.collections.immutable.persistentListOf
@@ -200,7 +201,7 @@ fun AddNotifIconIfNeeded(
@Composable @Composable
private fun NotificationDotIcon(modifier: Modifier) { private fun NotificationDotIcon(modifier: Modifier) {
Box(Size10Modifier) { Box(modifier.size(Size10dp)) {
Box( Box(
modifier = MaterialTheme.colorScheme.bottomIconModifier, modifier = MaterialTheme.colorScheme.bottomIconModifier,
contentAlignment = Alignment.TopEnd, contentAlignment = Alignment.TopEnd,