diff --git a/frontend/packages/swarm-ui/src/agent/detail/AgentInference.css b/frontend/packages/swarm-ui/src/agent/detail/AgentInference.css index f7f0a2b7..90c18e91 100644 --- a/frontend/packages/swarm-ui/src/agent/detail/AgentInference.css +++ b/frontend/packages/swarm-ui/src/agent/detail/AgentInference.css @@ -1,4 +1,4 @@ -/* — one setting per line: badge, then where it comes from. */ +/* — the settings in one wrapping line: each badge, then where it comes from. */ .ui-agent-inference { display: flex; flex-direction: column; @@ -6,17 +6,16 @@ gap: 0.3em; } .ui-agent-inference-list { + display: contents; list-style: none; margin: 0; padding: 0; - display: grid; - gap: 0.3em; } .ui-agent-inference-list li { - display: flex; - align-items: center; - gap: 0.5em; - flex-wrap: wrap; + display: contents; +} +.ui-agent-inference-source { + margin-left: -0.25em; } .ui-agent-inference-source, .ui-agent-inference-muted { diff --git a/frontend/packages/swarm-ui/src/agent/detail/AgentInference.tsx b/frontend/packages/swarm-ui/src/agent/detail/AgentInference.tsx index cc3c3cc4..da8c43fb 100644 --- a/frontend/packages/swarm-ui/src/agent/detail/AgentInference.tsx +++ b/frontend/packages/swarm-ui/src/agent/detail/AgentInference.tsx @@ -222,62 +222,66 @@ export function AgentInference({ agent }: { agent: string }) { return (
{errorPanel} -
    -
  • - {effective ? ( - <> - - - {SOURCE_LABEL[effective.model_source]} - - - ) : ( +
    +
      +
    • + {effective ? ( + <> + + + {SOURCE_LABEL[effective.model_source]} + + + ) : ( + + )} +
    • +
    • + {effective ? ( + <> + + + {SOURCE_LABEL[effective.effort_source]} + + + ) : ( + + )} +
    • +
    • 0 ? swarmModels.join(", ") : "its own" + } /> - )} -
    • -
    • - {effective ? ( - <> - - - {SOURCE_LABEL[effective.effort_source]} - - - ) : ( +
    • +
    • - )} -
    • -
    • - 0 ? swarmModels.join(", ") : "its own"} - /> -
    • -
    • - -
    • -
    - setEditing(true)} - /> +
  • +
+ setEditing(true)} + /> +
setEditing(false)} diff --git a/frontend/packages/swarm-ui/src/agent/detail/AgentLimits.css b/frontend/packages/swarm-ui/src/agent/detail/AgentLimits.css index 13aaa477..bbebf0fd 100644 --- a/frontend/packages/swarm-ui/src/agent/detail/AgentLimits.css +++ b/frontend/packages/swarm-ui/src/agent/detail/AgentLimits.css @@ -1,4 +1,4 @@ -/* — one cap per line, then the edit action. */ +/* — the caps and the edit action in one wrapping line. */ .ui-agent-limits { display: flex; flex-direction: column; @@ -6,11 +6,10 @@ gap: 0.3em; } .ui-agent-limits-list { + display: contents; list-style: none; margin: 0; padding: 0; - display: grid; - gap: 0.3em; } .ui-agent-limits-muted { color: var(--muted); diff --git a/frontend/packages/swarm-ui/src/agent/detail/AgentLimits.tsx b/frontend/packages/swarm-ui/src/agent/detail/AgentLimits.tsx index c4adeaf6..3444f22f 100644 --- a/frontend/packages/swarm-ui/src/agent/detail/AgentLimits.tsx +++ b/frontend/packages/swarm-ui/src/agent/detail/AgentLimits.tsx @@ -138,20 +138,22 @@ export function AgentLimits({ agent }: { agent: string }) { return (
{errorPanel} -
    -
  • - -
  • -
  • - -
  • -
- setEditing(true)} - /> +
+
    +
  • + +
  • +
  • + +
  • +
+ setEditing(true)} + /> +
setEditing(false)} diff --git a/frontend/packages/swarm-ui/src/agent/detail/AllowedDomains.tsx b/frontend/packages/swarm-ui/src/agent/detail/AllowedDomains.tsx index 7017ef08..793f016f 100644 --- a/frontend/packages/swarm-ui/src/agent/detail/AllowedDomains.tsx +++ b/frontend/packages/swarm-ui/src/agent/detail/AllowedDomains.tsx @@ -136,7 +136,7 @@ export function AllowedDomains({ agent }: { agent: string }) { return (
{errorPanel} -
+
{shown.length === 0 ? ( ) : null} diff --git a/frontend/packages/swarm-ui/src/ui/badge-popover/BadgePopover.css b/frontend/packages/swarm-ui/src/ui/badge-popover/BadgePopover.css index 61c23dd3..1ab6620d 100644 --- a/frontend/packages/swarm-ui/src/ui/badge-popover/BadgePopover.css +++ b/frontend/packages/swarm-ui/src/ui/badge-popover/BadgePopover.css @@ -25,8 +25,8 @@ display: grid; gap: 0.3em; } -/* A line of badge popovers that wraps when it runs out of room. */ -.ui-badge-popover-row { +/* A line of badges that wraps when it runs out of room. */ +.ui-badge-row { display: flex; flex-wrap: wrap; align-items: center;