mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
Show borders on 2 sides of the frame header when expanded too
the trick was: do it by having this border at the bottom of the framedetails. and: to be able to collapse the border too: make div-in-div. This gets rid of the remove-flex-when-collapsing code too
This commit is contained in:
@@ -34,8 +34,6 @@ function collapseSection(element) {
|
||||
|
||||
setBodyMinHeight();
|
||||
|
||||
element.classList.remove("xl:flex"); // this appears to be necessary, not sure why
|
||||
|
||||
// temporarily disable all css transitions
|
||||
const elementTransition = element.style.transition;
|
||||
element.style.transition = '';
|
||||
@@ -65,8 +63,6 @@ function expandSection(element) {
|
||||
|
||||
setBodyMinHeight();
|
||||
|
||||
element.classList.add("xl:flex"); // add back
|
||||
|
||||
// get the height of the element's inner content, regardless of its actual size
|
||||
const sectionHeight = element.scrollHeight;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user