Skip to content

Commit

Permalink
feat: scroll quando houver mais de 6 pets
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavogularte committed Aug 20, 2024
1 parent a538cf6 commit 4af3406
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/layouts/app/components/SideMenu/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,28 @@
}

&__avatars-yourpet {
max-height: calc(8.5rem * 2 + 2rem);
overflow-y: auto;

display: grid;
grid-template-columns: repeat(3, 6rem);
grid-gap: 2rem;
gap: 2rem;

margin-top: 2rem;
padding: 0.4rem 0.2rem;

&::-webkit-scrollbar {
width: 0.4rem;
}

&::-webkit-scrollbar-track {
background: colors.$primary600;
}

&::-webkit-scrollbar-thumb {
background-color: colors.$primary700;
border-radius: 1rem;
}
}

&__itens {
Expand Down Expand Up @@ -142,7 +159,7 @@
}

.side-menu-content {
width: 70%;
width: 80%;

&__menuitens {
transition: 0.3s;
Expand Down

0 comments on commit 4af3406

Please sign in to comment.