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.

💄 style(goal): give section heading hover fill padding around the title (#21661)

LiJianac949ca226ac
diff --git a/src/features/AgentGoals/ProcessControl/index.tsx b/src/features/AgentGoals/ProcessControl/index.tsx
index 40ac167b75d..6f1bb478af3 100644
--- a/src/features/AgentGoals/ProcessControl/index.tsx
+++ b/src/features/AgentGoals/ProcessControl/index.tsx
@@ -26,10 +26,13 @@ import {
} from './useGoalProcessActions';
// One left edge for headings and their content, so a section's rows line up
-// under its title instead of sitting on an indent.
+// under its title instead of sitting on an indent. The header bleeds out by the
+// trigger's padding, so the hover fill gets breathing room around the title
+// while the text itself keeps that edge.
const SECTION_STYLES = {
+ header: { marginInline: -8 },
panel: { paddingInline: 0 },
- trigger: { paddingBlock: 8, paddingInline: 0 },
+ trigger: { paddingBlock: 8, paddingInline: 8 },
};
/**
diff --git a/src/features/Portal/Goal/Body.tsx b/src/features/Portal/Goal/Body.tsx
index d6f4828b806..30ad03fafd5 100644
--- a/src/features/Portal/Goal/Body.tsx
+++ b/src/features/Portal/Goal/Body.tsx
@@ -125,7 +125,6 @@ const Body = memo(() => {
defaultValue={['deliverables', 'findings', 'activity']}
gap={0}
indicatorPlacement="inline"
- styles={{ trigger: { paddingBlock: 6, paddingInline: 0 } }}
items={[
{
children: (
@@ -177,6 +176,10 @@ const Body = memo(() => {
),
},
]}
+ styles={{
+ header: { marginInline: -8 },
+ trigger: { paddingBlock: 6, paddingInline: 8 },
+ }}
/>
</Flexbox>
}