mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-04 22:43:40 +01:00
Fix: collapsing group should not prevent resize / stats (#2053)
This commit is contained in:
parent
770dabdf1c
commit
63a47b1ad2
@ -49,6 +49,7 @@ export default function ServicesGroup({ group, services, layout, fiveColumns, di
|
||||
beforeEnter={() => {
|
||||
panel.current.style.height = `0px`;
|
||||
setTimeout(() => {panel.current.style.height = `${panel.current.scrollHeight}px`}, 1);
|
||||
setTimeout(() => {panel.current.style.height = 'auto'}, 150); // animation is 150ms
|
||||
}}
|
||||
>
|
||||
<Disclosure.Panel className="transition-all overflow-hidden duration-300 ease-out" ref={panel} static>
|
||||
|
Loading…
x
Reference in New Issue
Block a user