Skip to content

Commit 19047d0

Browse files
authored
Fix: whitespace between the main content and progressive sidebar (#7271)
* Fix whitespace between the main content and progressive sidebar * Remove .DS_Store files * Fix scrolling on sidebar
1 parent f60d063 commit 19047d0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

apps/site/layouts/layouts.module.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
mx-auto
1515
block
1616
w-full
17-
overflow-auto
1817
sm:grid
1918
sm:grid-cols-[theme(spacing.52)_1fr]
2019
sm:grid-rows-[1fr]
@@ -24,21 +23,22 @@
2423
xl:grid-cols-[theme(spacing.80)_1fr_theme(spacing.80)];
2524

2625
> *:nth-child(1) {
27-
@apply grid-in-[sidebar];
26+
@apply grid-in-[sidebar]
27+
lg:sticky
28+
lg:top-0
29+
lg:h-[100vh]
30+
lg:overflow-y-auto;
2831
}
2932

3033
> *:nth-child(2) {
3134
@apply contents
32-
overflow-y-scroll
3335
sm:max-lg:block;
3436

3537
> *:first-child {
3638
@apply grid-in-[main]
3739
sm:bg-gradient-subtle
3840
sm:dark:bg-gradient-subtle-dark
3941
xl:px-18
40-
overflow-y-auto
41-
overflow-x-hidden
4242
p-4
4343
motion-safe:scroll-smooth
4444
sm:bg-fixed
@@ -50,6 +50,8 @@
5050
mt-8
5151
border-t
5252
sm:mt-0
53+
lg:sticky
54+
lg:top-0
5355
lg:max-w-xs
5456
lg:border-l
5557
lg:border-t-0;

0 commit comments

Comments
 (0)