This commit is contained in:
gpt-engineer-app[bot]
2025-11-12 14:52:55 +00:00
parent c09a343d08
commit 40a4ff52c7
2 changed files with 29 additions and 7 deletions

View File

@@ -49,16 +49,17 @@ export function DetailedViewCollapsible({
<span className="text-xs text-muted-foreground normal-case font-normal">
{isCollapsed ? 'Show' : 'Hide'}
</span>
{isCollapsed ? (
<ChevronDown className="h-4 w-4 text-muted-foreground transition-transform duration-200" />
) : (
<ChevronUp className="h-4 w-4 text-muted-foreground transition-transform duration-200" />
)}
<ChevronDown
className={cn(
"h-4 w-4 text-muted-foreground transition-all duration-300 ease-out",
!isCollapsed && "rotate-180"
)}
/>
</div>
</Button>
</CollapsibleTrigger>
<CollapsibleContent className="mt-3 data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down">
<CollapsibleContent className="mt-3">
{children}
</CollapsibleContent>
</div>