Skip to content

Commit f6fbab7

Browse files
DOC-1722 : Fix CCIP tutorials scrolling issue (#3273)
1 parent e66fe0c commit f6fbab7

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/components/LeftSidebar/leftSidebar.module.css

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
.nav {
2-
padding-bottom: calc(2 * var(--doc-padding));
32
width: 100%;
4-
height: calc(100vh - var(--space-16x)); /* Subtract header height */
3+
height: calc(100vh - var(--space-16x));
4+
/* Subtract header height */
55
position: sticky;
6-
top: var(--space-16x); /* Header height */
7-
overflow: hidden; /* Prevent nav overflow */
6+
top: var(--space-16x);
7+
/* Header height */
8+
overflow: hidden;
9+
/* Prevent nav overflow */
10+
display: flex;
11+
flex-direction: column;
812
}
913

1014
.sidebarDropdowns {
1115
padding-top: var(--space-3x);
16+
flex-shrink: 0;
1217
}
1318

1419
.navGroups {
15-
padding: var(--doc-padding) var(--space-8x) var(--doc-padding) 0;
16-
height: 100%;
20+
padding: var(--doc-padding) var(--space-8x) calc(2 * var(--doc-padding)) 0;
21+
flex: 1;
1722
overflow-y: auto;
1823
scrollbar-width: thin;
1924
scrollbar-color: var(--gray-300) transparent;

0 commit comments

Comments
 (0)