Skip to content

Commit

Permalink
Adiconar scroll na side bar (#606)
Browse files Browse the repository at this point in the history
* feat: add scroll to sidebar

* refactor: fix scroll bar spacing

* refactor: code style

---------

Co-authored-by: juliaM <[email protected]>
  • Loading branch information
Mathh19 and juliaam authored Sep 10, 2024
1 parent 3adda40 commit 19a8e0f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/pages/home/components/Sidebar/Sidebar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@
display: none;
}

.accountWrapper {
width: 100%;
height: 100%;
max-height: 50rem;

overflow-y: auto;

padding: 0 0.3rem;

scrollbar-color: $secondaryGray transparent;
}

.content {
height: 100%;

Expand Down
4 changes: 3 additions & 1 deletion src/pages/home/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ function Sidebar(): React.ReactNode {
/>

{filteredAccountsResult.length > 0 ? (
<FilteredAccounts socialMedia={filteredAccountsResult} />
<div className={scss.accountWrapper}>
<FilteredAccounts socialMedia={filteredAccountsResult} />
</div>
) : (
<EmptyResult />
)}
Expand Down

0 comments on commit 19a8e0f

Please sign in to comment.