You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mobile/android/fenix/app/src/main/java/org/mozilla/fenix/onboarding/redesign/view/OnboardingScreenRedesign.kt
+26-7Lines changed: 26 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -275,10 +275,11 @@ private fun OnboardingContent(
275
275
val isLargeScreen =LocalContext.current.isLargeScreenSize()
276
276
val isLandscape =LocalConfiguration.current.orientation ==Configuration.ORIENTATION_LANDSCAPE
277
277
278
-
val pagerWidth = pageContentWidth(boxWithConstraintsScope, isLargeScreen)
279
-
val pagerHeight = pageContentHeight(boxWithConstraintsScope, isLargeScreen)
278
+
val pagerWidth = pageContentWidth(boxWithConstraintsScope, isLargeScreen, isLandscape)
279
+
val pagerHeight = pageContentHeight(boxWithConstraintsScope, isLargeScreen, isLandscape)
280
280
281
281
val pagePeekWidth = ((maxWidth - pagerWidth) /2).coerceAtLeast(8.dp)
282
+
val paddingValue =if (!isLargeScreen && isLandscape) 0.dp else pagePeekWidth
282
283
283
284
if (!isNonLargeScreenLandscape(isLargeScreen, isLandscape)) {
284
285
Image(
@@ -297,7 +298,7 @@ private fun OnboardingContent(
0 commit comments