Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix(goal): restore accordion padding and full-width list after base-ui migration (#20293)

Arvin Xua19e26941c51
diff --git a/src/components/Skeleton/Goal.tsx b/src/components/Skeleton/Goal.tsx
index b618bc9a4a4..36650eb9a5f 100644
--- a/src/components/Skeleton/Goal.tsx
+++ b/src/components/Skeleton/Goal.tsx
@@ -41,9 +41,11 @@ const GoalSkeleton = ({ chrome = 'page' }: RouteSkeletonProps) => (
<Flexbox aria-busy flex={1} height={'100%'}>
{chrome !== 'body' && <NavHeader />}
<WideScreenContainer
+ fullWidth
flex={1}
gap={20}
paddingBlock={16}
+ paddingInline={16}
wrapperStyle={{ flex: 1, overflowY: 'auto' }}
>
<Flexbox horizontal align={'center'} justify={'space-between'} paddingBlock={'6px 18px'}>
diff --git a/src/features/AgentGoals/AgentGoalsPage.tsx b/src/features/AgentGoals/AgentGoalsPage.tsx
index 40456d29275..2fe09c7ebea 100644
--- a/src/features/AgentGoals/AgentGoalsPage.tsx
+++ b/src/features/AgentGoals/AgentGoalsPage.tsx
@@ -183,9 +183,11 @@ const AgentGoalsPage = memo<AgentGoalsPageProps>(({ agentId, projectId }) => {
}
/>
<WideScreenContainer
+ fullWidth
flex={1}
gap={16}
paddingBlock={16}
+ paddingInline={16}
wrapperStyle={{ flex: 1, overflowY: 'auto' }}
>
{isLoading && data === undefined ? (
diff --git a/src/features/AgentGoals/ProcessControl/index.tsx b/src/features/AgentGoals/ProcessControl/index.tsx
index bc78eb0f81f..2c0d40e5643 100644
--- a/src/features/AgentGoals/ProcessControl/index.tsx
+++ b/src/features/AgentGoals/ProcessControl/index.tsx
@@ -119,7 +119,7 @@ const ProcessControl = memo<ProcessControlProps>(
defaultValue={['deliverables', 'findings', 'activity']}
gap={0}
indicatorPlacement="inline"
- styles={{ header: { paddingBlock: 6, paddingInline: 0 } }}
+ styles={{ trigger: { paddingBlock: 6, paddingInline: 0 } }}
items={
[
// The structured acceptance standard the terminal goal acceptance is
diff --git a/src/features/Portal/Goal/Body.tsx b/src/features/Portal/Goal/Body.tsx
index f84ec108424..49639223f92 100644
--- a/src/features/Portal/Goal/Body.tsx
+++ b/src/features/Portal/Goal/Body.tsx
@@ -119,7 +119,7 @@ const Body = memo(() => {
defaultValue={['deliverables', 'findings', 'activity']}
gap={0}
indicatorPlacement="inline"
- styles={{ header: { paddingBlock: 6, paddingInline: 0 } }}
+ styles={{ trigger: { paddingBlock: 6, paddingInline: 0 } }}
items={[
{
children: (