-
{children}
+
{children}
{!isExpanded && (
)}
@@ -133,7 +133,7 @@ function ExpandableContent({ children }: { children: ReactNode }) {
tabIndex={0}
type="button"
onClick={() => setIsExpanded((expanded) => !expanded)}
- className="mt-2 text-sm text-brand-link transition-colors hover:text-brand focus-ring"
+ className="mt-2 cursor-pointer text-sm text-brand-link transition-colors hover:text-foreground focus-ring"
aria-expanded={isExpanded}
>
{isExpanded ? 'Show less' : 'Show more'}
@@ -167,7 +167,7 @@ function PromptBody({
)
return (
-
+
{prompt.expandable ? {content} : content}
)
@@ -296,16 +296,32 @@ function PromptPanel({ children, className }: PromptPanelProps) {
{header}
- {prompts.map((prompt) => (
-
-
-
- ))}
+ {/* Stack panes in one grid cell so the panel keeps the tallest tab's height. */}
+
+ {prompts.map((prompt) => {
+ const isActive = prompt.value === activeTab
+
+ return (
+
+
+
+ )
+ })}
+
)
}