runloopable / web /src /manage-agent /manageAgent.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
64268da verified
Raw History Blame Contribute Delete
2.38 kB
/* manage-agent/manageAgent.css — wave 33, owner item 10 (W33-T38).
*
* ⛔ CONTRACT C4: `index.css` is lane B's. Everything NEW to this module lives
* here; everything SHARED with Manage user (`.set-card`, `.set-pane`, `.set-h`,
* `.set-perm-*`) is reused from `index.css` unchanged and is NOT redefined here.
* That is deliberate and it is the owner's requirement — *"the same exact
* layout"*. A stylesheet that re-specified the shared chrome would let the two
* rooms drift by a padding value, which is exactly the drift the shared
* `ModulePermsList` component exists to prevent one level up.
*/
.ma-list {
list-style: none;
margin: 12px 0 20px;
padding: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.ma-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
/* The whole left half is the door, so the target is a row and not a word. */
.ma-open {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
flex: 1 1 auto;
min-width: 0;
/* ⚠ A <button> inherits neither `font` nor `text-align` from its container —
the exact defect owner item 15 reports on Home's automation tiles, one
screen over. Both are stated rather than assumed. */
font: inherit;
text-align: left;
background: none;
border: 0;
padding: 0;
cursor: pointer;
color: inherit;
}
.ma-open:disabled { cursor: default; opacity: 0.6; }
.ma-open:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; }
.ma-name {
font-size: var(--lp-fs-sm);
font-weight: 620;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
}
.ma-channel {
font-size: var(--lp-fs-2xs);
color: var(--lp-muted);
font-variant-numeric: tabular-nums;
}
.ma-end {
display: flex;
align-items: center;
gap: 10px;
flex: none;
}
/* The write-approval state, visible without opening the agent. Everything else
about an agent is recoverable by editing it; an unattended write is not. */
.ma-flag {
font-size: var(--lp-fs-2xs);
color: var(--lp-muted);
white-space: nowrap;
}
.ma-approval { margin: 4px 0 0; }
.ma-principal { max-width: 68ch; }
.ma-unconfigured { max-width: 68ch; }
.ma-add { margin-top: 16px; }
@media (max-width: 640px) {
.ma-row { flex-wrap: wrap; }
.ma-end { flex-wrap: wrap; justify-content: flex-end; }
}