diff options
author | Reuben Tier | 2023-07-17 22:31:56 +0100 |
---|---|---|
committer | GitHub | 2023-07-17 23:31:56 +0200 |
commit | a2e23be71d9f3592a9ac615981233bf4e9f3af6b (patch) | |
tree | 14aaa133be277f0fa13f79a32aa2a8b2b7b3fb5e | |
parent | 65b2b7561a185be29ff7f773bf9432dc3c4da2e4 (diff) | |
download | IT.starlight-a2e23be71d9f3592a9ac615981233bf4e9f3af6b.tar.gz IT.starlight-a2e23be71d9f3592a9ac615981233bf4e9f3af6b.tar.bz2 IT.starlight-a2e23be71d9f3592a9ac615981233bf4e9f3af6b.zip |
Fix page scroll on window resize (#352)
-rw-r--r-- | .changeset/lucky-pens-switch.md | 5 | ||||
-rw-r--r-- | packages/starlight/components/MobileMenuToggle.astro | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/.changeset/lucky-pens-switch.md b/.changeset/lucky-pens-switch.md new file mode 100644 index 00000000..6a47eafe --- /dev/null +++ b/.changeset/lucky-pens-switch.md @@ -0,0 +1,5 @@ +--- +"@astrojs/starlight": patch +--- + +Fix page scrolling when the window resizes, while the mobile nav is open diff --git a/packages/starlight/components/MobileMenuToggle.astro b/packages/starlight/components/MobileMenuToggle.astro index d199f4f6..a32bf1d9 100644 --- a/packages/starlight/components/MobileMenuToggle.astro +++ b/packages/starlight/components/MobileMenuToggle.astro @@ -92,4 +92,10 @@ const t = useTranslations(Astro.props.locale); [data-mobile-menu-expanded] { overflow: hidden; } + + @media (min-width: 50rem) { + [data-mobile-menu-expanded] { + overflow: auto; + } + } </style> |