Skip to content

Commit 8dd9352

Browse files
committed
Add scroll to goals screen
1 parent 9ddd415 commit 8dd9352

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

frontend/src/components/goals-screen/GoalsScreen.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
.goals-container {
1818
display: flex;
19+
max-height: calc(100vh - 216px);
20+
overflow: auto;
1921

2022
.goals-display-area {
2123
margin: 30px 30px 0px 30px;
@@ -145,3 +147,27 @@
145147
}
146148
}
147149
}
150+
151+
.goals-container {
152+
scrollbar-width: thin; /* For Firefox */
153+
scrollbar-color: #888888 #f0f0f0; /* For Firefox */
154+
}
155+
156+
/* Webkit (Chrome, Safari) */
157+
.goals-container::-webkit-scrollbar {
158+
width: 8px;
159+
}
160+
161+
.goals-container::-webkit-scrollbar-thumb {
162+
background-color: #555555;
163+
border-radius: 4px;
164+
}
165+
166+
.goals-container::-webkit-scrollbar-thumb:hover {
167+
background-color: #777777;
168+
}
169+
170+
.goals-container::-webkit-scrollbar-track {
171+
background-color: #001f3f;
172+
border-radius: 4px;
173+
}

0 commit comments

Comments
 (0)