Skip to content

Commit 80091d6

Browse files
n0mahdclaude
andcommitted
fix(web): tidy skill row panel and group row on phones
Buttons sit on the chips' line in the expanded panel, and group rows hide their agent icons below the sm breakpoint so the source fits. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent aaf9827 commit 80091d6

1 file changed

Lines changed: 21 additions & 18 deletions

File tree

‎apps/web/src/components/settings/SkillList.tsx‎

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -158,28 +158,29 @@ const SkillRow = memo(function SkillRow({
158158
{open && !selecting && (
159159
<div
160160
id={panelId}
161-
className={cn("space-y-2.5 pr-3 pb-3 sm:pr-4", nested ? "pl-9 sm:pl-10" : "pl-3 sm:pl-4")}
161+
className={cn(
162+
"flex flex-wrap items-center gap-2 pr-3 pb-3 sm:pr-4",
163+
nested ? "pl-9 sm:pl-10" : "pl-3 sm:pl-4",
164+
)}
162165
>
163166
{ctx.installed.length === 0 ? (
164167
<p className="text-xs text-muted-foreground">No agents are installed.</p>
165168
) : (
166-
<div className="flex flex-wrap gap-2">
167-
{ctx.installed.map((agent) => (
168-
<AgentSwitchChip
169-
key={agent.instanceId}
170-
skill={skill}
171-
agent={agent}
172-
ctx={ctx}
173-
busy={busy}
174-
onToggle={() => {
175-
const plan = planToggle(skill, agent, ctx);
176-
if (plan) onPlan(plan);
177-
}}
178-
/>
179-
))}
180-
</div>
169+
ctx.installed.map((agent) => (
170+
<AgentSwitchChip
171+
key={agent.instanceId}
172+
skill={skill}
173+
agent={agent}
174+
ctx={ctx}
175+
busy={busy}
176+
onToggle={() => {
177+
const plan = planToggle(skill, agent, ctx);
178+
if (plan) onPlan(plan);
179+
}}
180+
/>
181+
))
181182
)}
182-
<div className="flex flex-wrap justify-end gap-2">
183+
<div className="ml-auto flex gap-2">
183184
<UseInPopover skills={own} places={places} busy={busy} onPlan={onPlan} />
184185
<Button size="xs" variant="outline" onClick={() => onOpen(skill.id)}>
185186
Edit skill
@@ -264,7 +265,9 @@ const SkillGroupRows = memo(function SkillGroupRows({
264265
{group.skills.length}
265266
</Badge>
266267
</button>
267-
<SkillAgents value={derived.availability} ctx={ctx} />
268+
<span className="hidden sm:contents">
269+
<SkillAgents value={derived.availability} ctx={ctx} />
270+
</span>
268271
{!selecting && (
269272
<>
270273
<span className="flex items-center" onClick={stopRowClick}>

0 commit comments

Comments
 (0)