revert formula

This commit is contained in:
Evgeny Poberezkin
2026-06-11 20:12:01 +01:00
parent 1e31ea7ee5
commit 409028ad4a
@@ -160,7 +160,7 @@ private val badgeColorFilter = ColorFilter.colorMatrix(
@Composable
private fun ProfileBadge(size: Dp, badge: LocalBadge, onBadgeClick: (() -> Unit)?) {
val s = size.value
val mult = 1f + 0.3f * ((192f - s) / 156f).coerceIn(0f, 1f)
val mult = 1f + 0.5f * ((192f - s) / 156f).coerceIn(0f, 1f)
// phone height ~0.28*S; set width only (= 0.7617*height) and let the height follow the glyph's aspect ratio
val phoneW = 0.28f * 0.7617f * size * mult
val mod = Modifier.width(phoneW).let { if (onBadgeClick != null) it.clickable(onClick = onBadgeClick) else it }