adjust hero height

This commit is contained in:
tapframe 2026-04-11 00:10:20 +05:30
parent 8f7b91fbac
commit 7bb4e11ba9
2 changed files with 2 additions and 2 deletions

View file

@ -448,7 +448,7 @@ internal fun homeHeroLayout(
)
else -> HomeHeroLayout(
isTablet = false,
heroHeight = viewportHeightDp?.let { (it * 0.85f).dp } ?: (maxWidthDp * 1.22f).dp.coerceIn(440.dp, 800.dp),
heroHeight = viewportHeightDp?.let { (it * 0.78f).dp } ?: (maxWidthDp * 1.16f).dp.coerceIn(420.dp, 760.dp),
contentMaxWidth = 480.dp,
contentWidthFraction = 1f,
contentHorizontalPadding = 24.dp,

View file

@ -13,7 +13,7 @@ class HomeHeroSectionTest {
)
assertEquals(false, layout.isTablet)
assertEquals(717.4f, layout.heroHeight.value, 0.001f)
assertEquals(692.08f, layout.heroHeight.value, 0.001f)
}
@Test