Skip to content

Commit cdbeca9

Browse files
authored
Merge pull request #16 from codedstrings/fix/overflow
feat: add overflow handling for better scrolling experience
2 parents ef8a922 + 26710cb commit cdbeca9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/assets/styles.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ html,
3030
body {
3131
height: 100%;
3232
margin: 0;
33+
overflow: hidden;
3334
}
3435

3536
body {
@@ -65,6 +66,7 @@ body {
6566
display: flex;
6667
flex-grow: 1;
6768
width: 100%;
69+
overflow: hidden;
6870
}
6971
.content>.sidebar {
7072
flex: 1;
@@ -74,13 +76,17 @@ body {
7476
.projects-wrapper {
7577
display: flex;
7678
flex-direction: column;
79+
height: 100%;
7780
}
7881
.projects-header{
7982
font-size: 1.2rem;
8083
text-transform: uppercase;
8184
font-weight: bold;
8285
}
8386
/* list project section */
87+
.projects-list{
88+
overflow-y: auto;
89+
}
8490
.projects-list, .button-add-project{
8591
padding-left: 5px;
8692
}
@@ -208,6 +214,10 @@ body {
208214
text-decoration: line-through;
209215
opacity: 0.6;
210216
}
217+
.tasks-wrapper {
218+
height: calc(100% - 60px); /* Subtract space for the "Add Task" button */
219+
overflow-y: auto;
220+
}
211221
/* New Task Button */
212222
.tasks-wrapper, .new-todo-btn-wrapper{
213223
padding-left: 10px;

0 commit comments

Comments
 (0)