Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions front_end/src/components/ui/expandable_content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,21 @@ const ExpandableContent: FC<PropsWithChildren<Props>> = ({
{children}
<div
className={cn(
"absolute bottom-0 block h-1/2 w-full bg-gradient-to-t to-transparent",
"pointer-events-none absolute bottom-0 block h-1/2 w-full bg-gradient-to-t to-transparent",
{ hidden: isExpanded }
)}
/>
<div
className={cn(
"flex w-full justify-center",
isExpanded ? "mt-3" : "absolute bottom-0",
isExpanded ? "mt-3" : "pointer-events-none absolute bottom-0",
{ hidden: !isExpandable }
)}
>
<Button
variant="tertiary"
onClick={() => setIsExpanded((prev) => !prev)}
className="pointer-events-auto"
>
<FontAwesomeIcon
icon={isExpanded ? faChevronUp : faChevronDown}
Expand Down