mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-25 18:42:53 +00:00
adjust hero height
This commit is contained in:
parent
8f7b91fbac
commit
7bb4e11ba9
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue