File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -148,12 +148,12 @@ export function SidebarRouteTree({
148
148
{ index !== 0 && (
149
149
< li
150
150
role = "separator"
151
- className = "mt-4 mb-2 ml -5 xs:mx-5 border-b border-border dark:border-border-dark"
151
+ className = "mt-4 mb-2 mx -5 sm:mr-0 border-b border-border dark:border-border-dark"
152
152
/>
153
153
) }
154
154
< h3
155
155
className = { cn (
156
- 'mb-1 text-sm font-bold ml -5 xs:mx-5 text-tertiary dark:text-tertiary-dark' ,
156
+ 'mb-1 text-sm font-bold mx -5 sm:mr-0 text-tertiary dark:text-tertiary-dark' ,
157
157
index !== 0 && 'mt-2'
158
158
) } >
159
159
{ sectionHeader }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default function SidebarNav({
31
31
32
32
return (
33
33
< div className = { cn ( 'sticky top-0 lg:bottom-0 lg:h-screen flex flex-col' ) } >
34
- < div className = "overflow-y-scroll no-bg-scrollbar lg:w-[342px] grow bg-wash dark:bg-wash-dark" >
34
+ < div className = "overflow-y-overlay no-bg-scrollbar lg:w-[342px] grow bg-wash dark:bg-wash-dark" >
35
35
< aside
36
36
className = { cn (
37
37
`lg:grow lg:flex flex-col w-full pb-8 lg:pb-0 lg:max-w-xs z-10 hidden lg:block`
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ export default function TopNav({
290
290
{ isOpen && (
291
291
< div
292
292
ref = { scrollParentRef }
293
- className = "overflow-y-scroll no-bg-scrollbar lg:w-[342px] grow bg-wash dark:bg-wash-dark" >
293
+ className = "overflow-y-overlay no-bg-scrollbar lg:w-[342px] grow bg-wash dark:bg-wash-dark" >
294
294
< aside
295
295
className = { cn (
296
296
`lg:grow lg:flex flex-col w-full pb-8 lg:pb-0 lg:max-w-xs z-50` ,
@@ -302,7 +302,7 @@ export default function TopNav({
302
302
className = "w-full lg:h-auto grow pr-0 lg:pr-5 pt-4 lg:py-6 md:pt-4 lg:pt-4 scrolling-touch scrolling-gpu" >
303
303
{ /* No fallback UI so need to be careful not to suspend directly inside. */ }
304
304
< Suspense fallback = { null } >
305
- < div className = "pl-3 xs:px-5 xs:gap-0.5 xs:text-base flex flex-row lg:hidden text-base font-bold text-secondary dark:text-secondary-dark" >
305
+ < div className = "px-5 sm: pl-3 sm:pr-0 xs:gap-0.5 xs:text-base flex flex-row lg:hidden text-base font-bold text-secondary dark:text-secondary-dark" >
306
306
< NavItem isActive = { section === 'learn' } url = "/learn" >
307
307
Learn
308
308
</ NavItem >
@@ -322,7 +322,7 @@ export default function TopNav({
322
322
</ div >
323
323
< div
324
324
role = "separator"
325
- className = "ml -5 xs:mx-5 mt-4 mb-2 border-b border-border dark:border-border-dark"
325
+ className = "mx -5 sm:mr-0 mt-4 mb-2 border-b border-border dark:border-border-dark"
326
326
/>
327
327
< SidebarRouteTree
328
328
// Don't share state between the desktop and mobile versions.
Original file line number Diff line number Diff line change 224
224
html .dark .no-bg-scrollbar ::-webkit-scrollbar-thumb : active {
225
225
background-color : rgba (255 , 255 , 255 , 0.35 ) !important ;
226
226
}
227
+
228
+ /*
229
+ * 'overlay' is a deprecated value, but works with the .no-bg-scrollbar solution
230
+ * so the scrollbar width doesn't offset the containing element's width.
231
+ * We can go back to using 'scroll' when .no-bg-scrollbar is no longer needed.
232
+ */
233
+ html .overflow-y-overlay {
234
+ overflow-y : scroll; /* For Firefox. */
235
+ overflow-y : overlay; /* For WebKit-based browsers. */
236
+ }
227
237
}
228
238
229
239
.code-step * {
You can’t perform that action at this time.
0 commit comments