[Vuejs]-Restrict height of collapsed accordion segment Bootstrap 5 Vue3

0👍

Found it!
You gotta put the class in the accordion-body.
So at first define a class like

.restrict-collapsing {
  max-height: 100px !important;
  overflow: auto !important;
}

then call it within the same bracket as accordion-body

<div class="accordion-body restrict_collapsing">
          Placeholder<br />this must be long <br />this must be long <br />this
          must be long <br />this must be long <br />this must be long
          <br />this must be long <br />this must be long <br />this must be
          long <br />this must be long(thats what she said) <br />
        </div>

Leave a comment