diff --git a/src/common/components/ExpanderSection.tsx b/src/common/components/ExpanderSection.tsx index 198061fc0..fc82cf1a3 100644 --- a/src/common/components/ExpanderSection.tsx +++ b/src/common/components/ExpanderSection.tsx @@ -2,6 +2,7 @@ import * as React from 'react'; import type { SxProps } from '@mui/joy/styles/types'; import { Box, FormHelperText, Typography } from '@mui/joy'; +import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; import UnfoldMoreIcon from '@mui/icons-material/UnfoldMore'; import { ExpanderControlledBox } from './ExpanderControlledBox'; @@ -11,7 +12,6 @@ const _styles = { header: { // style - // borderRadius: 'sm', // borderBottom: '1px solid', // borderBottomColor: 'rgba(var(--joy-palette-neutral-mainChannel) / 0.05)', @@ -41,15 +41,22 @@ const _styles = { }, headerTextWrapper: { - flexGrow: 1, + // flexGrow: 1, display: 'flex', flexDirection: 'column', gap: 0.25, // mb: 0.5, }, + aeDivider: { + flex: 1, + height: '1px', + backgroundColor: 'divider', + ml: 0.25, + }, + aeHeaderIcon: { - mr: 0, + // mr: 0, color: 'neutral.softColor', fontSize: 'md', }, @@ -94,7 +101,6 @@ export function ExpanderSection(props: { return <> - {/* Clickable header */} {description}} - {isCollapsible && !isExpanded && } + {isCollapsible && !isExpanded && } + + {isCollapsible && (isExpanded + ? + : + )} {/* Content - always mounted, animated from 0 to height */}