[WEB-5614] chore: work item detail and list layout enhancements #8355
This commit is contained in:
parent
7c6a6a3432
commit
1338e9d2a4
5 changed files with 14 additions and 12 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import { Disclosure, Transition } from "@headlessui/react";
|
||||
import type { FC } from "react";
|
||||
import React, { useState, useEffect, useCallback } from "react";
|
||||
|
||||
export type TCollapsibleProps = {
|
||||
|
|
@ -40,14 +39,17 @@ export function Collapsible(props: TCollapsibleProps) {
|
|||
</Disclosure.Button>
|
||||
<Transition
|
||||
show={localIsOpen}
|
||||
enter="transition-max-height duration-400 ease-in-out"
|
||||
enterFrom="max-h-0"
|
||||
enterTo="max-h-screen"
|
||||
leave="transition-max-height duration-400 ease-in-out"
|
||||
leaveFrom="max-h-screen"
|
||||
leaveTo="max-h-0"
|
||||
enter="transition-all duration-300 ease-in-out"
|
||||
enterFrom="grid-rows-[0fr] opacity-0"
|
||||
enterTo="grid-rows-[1fr] opacity-100"
|
||||
leave="transition-all duration-300 ease-in-out"
|
||||
leaveFrom="grid-rows-[1fr] opacity-100"
|
||||
leaveTo="grid-rows-[0fr] opacity-0"
|
||||
className="grid overflow-hidden"
|
||||
>
|
||||
<Disclosure.Panel static>{children}</Disclosure.Panel>
|
||||
<Disclosure.Panel static className="min-h-0">
|
||||
{children}
|
||||
</Disclosure.Panel>
|
||||
</Transition>
|
||||
</Disclosure>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue