Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 774ef9db authored by Michael Mikhail's avatar Michael Mikhail Committed by Android (Google) Code Review
Browse files

Merge "Remove paddings from media carousel content" into main

parents 5464aaf4 d503997b
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -235,16 +235,10 @@ private fun CardCarouselContent(
    val isSwipingEnabled = behavior.isCarouselScrollingEnabled && !isFalseTouchDetected

    val roundedCornerShape = RoundedCornerShape(32.dp)
    val padding =
        if (presentationStyle == MediaPresentationStyle.Large) {
            0.dp
        } else {
            8.dp
        }

    Box(
        modifier =
            modifier.padding(padding).clip(roundedCornerShape).pointerInput(behavior) {
            modifier.clip(roundedCornerShape).pointerInput(behavior) {
                if (behavior.isCarouselScrollFalseTouch != null) {
                    awaitEachGesture {
                        awaitFirstDown(false, PointerEventPass.Initial)