From 5a8984df304de0960e99b77bf5e8757a318c7233 Mon Sep 17 00:00:00 2001 From: Long Xiong <1127186062@qq.com> Date: Tue, 11 Jan 2022 16:03:35 +0800 Subject: [PATCH] Delete container 's width The container 'horizontal-snap' will overflow on mobile phone. --- snippets/horizontal-scroll-snap.md | 1 - 1 file changed, 1 deletion(-) diff --git a/snippets/horizontal-scroll-snap.md b/snippets/horizontal-scroll-snap.md index 8b7e62b69..8432a4098 100644 --- a/snippets/horizontal-scroll-snap.md +++ b/snippets/horizontal-scroll-snap.md @@ -33,7 +33,6 @@ Creates a horizontally scrollable container that will snap on elements when scro gap: 1rem; height: calc(180px + 1rem); padding: 1rem; - width: 480px; overflow-y: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;