Skip to content

Commit f1a001b

Browse files
committed
added scrollbar for sidebar sistentNav
Signed-off-by: Aryan Shah <[email protected]>
1 parent 65cec2d commit f1a001b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/components/SistentNavigation/toc.style.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ const TOCWrapper = styled.div`
4242
margin-bottom: 1rem;
4343
}
4444
45+
.toc-list {
46+
flex-grow: 1;
47+
overflow-y: auto;
48+
padding-right: 0.5rem;
49+
max-height: 73vh;
50+
position: sticky;
51+
z-index: 1000;
52+
}
53+
4554
.toc-sub-heading {
4655
color: ${(props) => props.theme.text};
4756
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);

src/sections/Projects/Sistent/sistent.style.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,6 @@ const SistentWrapper = styled.div`
626626
627627
.main-content {
628628
padding-top: 1rem;
629-
min-height: 50vh;
630629
}
631630
632631
.image-container {

0 commit comments

Comments
 (0)