swarm-ui: show the inference settings and resource caps on one wrapping line each
This commit is contained in:
parent
e70560c0ad
commit
369946169c
1 changed files with 83 additions and 79 deletions
|
|
@ -138,20 +138,22 @@ export function AgentLimits({ agent }: { agent: string }) {
|
|||
return (
|
||||
<div class="ui-agent-limits">
|
||||
{errorPanel}
|
||||
<ul class="ui-agent-limits-list">
|
||||
<li>
|
||||
<Badge label="cpu quota" value={caps.cpu_quota ?? HIVE_DECIDES} />
|
||||
</li>
|
||||
<li>
|
||||
<Badge label="memory max" value={caps.memory_max ?? HIVE_DECIDES} />
|
||||
</li>
|
||||
</ul>
|
||||
<Badge
|
||||
variant="quiet"
|
||||
value="edit"
|
||||
title={`set the swarm's CPU and memory caps for ${agent}`}
|
||||
onClick={() => setEditing(true)}
|
||||
/>
|
||||
<div class="ui-badge-row">
|
||||
<ul class="ui-agent-limits-list">
|
||||
<li>
|
||||
<Badge label="cpu quota" value={caps.cpu_quota ?? HIVE_DECIDES} />
|
||||
</li>
|
||||
<li>
|
||||
<Badge label="memory max" value={caps.memory_max ?? HIVE_DECIDES} />
|
||||
</li>
|
||||
</ul>
|
||||
<Badge
|
||||
variant="quiet"
|
||||
value="edit"
|
||||
title={`set the swarm's CPU and memory caps for ${agent}`}
|
||||
onClick={() => setEditing(true)}
|
||||
/>
|
||||
</div>
|
||||
<Dialog
|
||||
open={editing}
|
||||
onClose={() => setEditing(false)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue