From 7057f53194286a89be5ff77bfd32379b73551f2e Mon Sep 17 00:00:00 2001 From: Tran Duc Anh Dang Date: Sun, 25 Oct 2026 10:05:13 +1100 Subject: [PATCH] Keep ref scrolling example scrollable at wider viewport sizes --- src/content/learn/manipulating-the-dom-with-refs.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/learn/manipulating-the-dom-with-refs.md b/src/content/learn/manipulating-the-dom-with-refs.md index 2d1ee86851d..eb4fd50484b 100644 --- a/src/content/learn/manipulating-the-dom-with-refs.md +++ b/src/content/learn/manipulating-the-dom-with-refs.md @@ -166,6 +166,8 @@ export default function CatFriends() { ```css div { width: 100%; + max-width: 400px; + margin: 0 auto; overflow: hidden; }