Skip to content

Commit

Permalink
collapsible: max-height only when overflow scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
rithvikvibhu committed Jul 27, 2022
1 parent 00f4c86 commit 4a4ac98
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/components/Collapsible/collapsible.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,19 @@

&__content {
opacity: 1;
// padding: 1rem;
position: relative;
max-height: 35rem;
height: auto;
transition: 0.5s ease-out;

&--hidden {
opacity: 0;
max-height: 0;
max-height: 0 !important;
overflow: hidden;
transition: 0.5s ease-out;
}

&--overflowY {
max-height: 35rem;
overflow-y: auto;
}
}
Expand Down

0 comments on commit 4a4ac98

Please sign in to comment.