Files
openclaw/ui/src/styles/board.css
T
Peter Steinberger 421e287c45 fix(ui): show Swarm progress in Chat (#113619)
* fix(ui): show Swarm progress in chat

* style(ui): format rebased Swarm integration

* fix(ui): bound inline Swarm progress height
2026-07-25 04:36:50 -07:00

1016 lines
21 KiB
CSS

openclaw-board-view {
display: block;
min-width: 0;
width: 100%;
}
.board-view {
--board-line: color-mix(in srgb, var(--border, #2c313a) 84%, transparent);
--board-surface: color-mix(in srgb, var(--panel, #171a20) 94%, transparent);
display: grid;
gap: 12px;
min-width: 0;
position: relative;
}
.board-view__error {
background: color-mix(in srgb, var(--danger, #ff6b6b) 8%, var(--panel, #171a20));
border: 1px solid color-mix(in srgb, var(--danger, #ff6b6b) 42%, transparent);
border-radius: 9px;
color: var(--danger, #ff6b6b);
font-size: 12px;
padding: 9px 12px;
}
.board-tabs {
align-items: center;
border-bottom: 1px solid var(--board-line);
display: flex;
min-width: 0;
}
.board-tabs__track {
--track-width: 0;
display: block;
flex: 1 1 auto;
min-width: 0;
overflow-x: auto;
scrollbar-width: none;
}
.board-tabs__track::part(nav) {
display: flex;
}
.board-tabs__track::part(body) {
display: none;
}
.board-tabs__track::-webkit-scrollbar {
display: none;
}
.board-tabs__tab {
color: var(--muted, #8a919e);
flex: 0 0 auto;
}
.board-tabs__tab::part(base) {
border-bottom: 2px solid transparent;
font-size: 12.5px;
min-height: 38px;
padding: 0 13px;
transition:
background 120ms ease,
border-color 120ms ease,
color 120ms ease;
}
.board-tabs__tab:hover::part(base),
.board-tabs__tab:focus-visible::part(base) {
background: color-mix(in srgb, var(--text, #d7dae0) 6%, transparent);
color: var(--text, #d7dae0);
}
.board-tabs__tab--active::part(base) {
border-bottom-color: var(--accent, #ff5c5c);
color: var(--text, #d7dae0);
}
.board-tabs__tab--drop::part(base) {
background: color-mix(in srgb, var(--accent, #ff5c5c) 14%, transparent);
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #ff5c5c) 70%, transparent);
}
.board-tabs__overflow,
.board-widget__menu {
margin-left: auto;
position: relative;
}
.board-tabs__overflow-trigger,
.board-widget__menu-trigger {
align-items: center;
background: transparent;
border: 0;
border-radius: 7px;
color: var(--muted, #8a919e);
cursor: pointer;
display: inline-flex;
justify-content: center;
user-select: none;
}
.board-tabs__overflow-trigger {
height: 30px;
width: 34px;
}
.board-tabs__overflow-trigger:hover,
.board-widget__menu-trigger:hover {
background: color-mix(in srgb, var(--text, #d7dae0) 10%, transparent);
color: var(--text, #d7dae0);
}
.board-tabs__overflow::part(menu),
.board-widget__menu::part(menu) {
background: var(--panel, #171a20);
border: 1px solid var(--board-line);
border-radius: 10px;
box-shadow: 0 18px 48px rgb(0 0 0 / 32%);
min-width: 190px;
padding: 6px;
}
.board-tabs__overflow-item {
min-width: 180px;
}
.board-grid {
display: grid;
gap: 12px;
grid-auto-rows: 56px;
grid-template-columns: repeat(12, minmax(0, 1fr));
min-width: 0;
position: relative;
}
.board-grid__append-zone {
border-top: 1px dashed color-mix(in srgb, var(--accent, #ff5c5c) 48%, transparent);
bottom: -42px;
height: 38px;
left: 0;
position: absolute;
right: 0;
z-index: 7;
}
openclaw-board-widget-cell {
display: contents;
}
.board-widget {
background: var(--board-surface);
border: 1px solid var(--board-line);
border-radius: 12px;
box-shadow: 0 1px 1px rgb(0 0 0 / 12%);
display: grid;
grid-template-rows: 38px minmax(0, 1fr);
min-height: 0;
min-width: 0;
overflow: visible;
position: relative;
transition:
border-color 120ms ease,
box-shadow 120ms ease,
transform 120ms ease;
}
.board-widget:focus-visible {
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #ff5c5c) 70%, transparent);
outline: none;
}
.board-widget--dragging {
border-color: color-mix(in srgb, var(--accent, #ff5c5c) 72%, transparent);
box-shadow: 0 16px 36px rgb(0 0 0 / 28%);
opacity: 0.88;
transform: scale(0.995);
z-index: 8;
}
.board-widget__bar {
align-items: center;
background: color-mix(in srgb, var(--text, #d7dae0) 3%, transparent);
border-bottom: 1px solid var(--board-line);
border-radius: 11px 11px 0 0;
display: flex;
gap: 7px;
min-width: 0;
padding: 0 6px;
}
.board-widget__drag-handle,
.board-widget__resize-handle {
background: transparent;
border: 0;
color: var(--muted, #8a919e);
}
.board-widget__drag-handle {
align-items: center;
border-radius: 6px;
cursor: grab;
display: inline-flex;
font-size: 17px;
height: 27px;
justify-content: center;
padding: 0;
touch-action: none;
width: 25px;
}
.board-widget__drag-handle:hover {
background: color-mix(in srgb, var(--text, #d7dae0) 9%, transparent);
color: var(--text, #d7dae0);
}
.board-widget__title {
color: var(--text, #d7dae0);
font-size: 12.5px;
font-weight: 590;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.board-widget__kind {
border: 1px solid var(--board-line);
border-radius: 999px;
color: var(--muted, #8a919e);
font-size: 8px;
letter-spacing: 0.08em;
line-height: 15px;
margin-left: auto;
padding: 0 5px;
}
.board-widget__menu {
margin-left: 0;
}
.board-widget__menu-trigger {
font-size: 21px;
height: 27px;
line-height: 1;
width: 27px;
}
.board-widget__menu-heading {
color: var(--muted, #8a919e);
font-size: 9px;
letter-spacing: 0.08em;
padding: 7px 9px 3px;
text-transform: uppercase;
}
.board-widget__menu-empty {
color: var(--muted, #8a919e);
font-size: 11px;
padding: 5px 9px;
}
.board-widget__preset {
font-size: 11px;
}
.board-widget__menu-separator {
border-top: 1px solid var(--board-line);
margin: 5px 3px;
}
.board-widget__menu-danger {
color: var(--danger, #ff6b6b);
}
.board-widget__body {
min-height: 0;
overflow: hidden;
position: relative;
}
.board-widget__body--card {
box-sizing: border-box;
padding: var(--widget-frame-inset);
}
.board-widget__body--scrollable {
overflow: auto;
}
.board-widget__body--scrollable .board-widget__grant {
box-sizing: border-box;
height: auto;
min-height: 100%;
}
.board-widget__error-overlay {
inset: 0;
position: absolute;
}
/* Passive trust indicator: only meaningful where chrome hides (fine pointer),
so the base rule keeps it off and the overlay block reveals it at rest. */
.board-widget__grant-dot {
display: none;
}
.board-widget__frame {
background: transparent;
border: 0;
display: block;
height: 100%;
width: 100%;
}
.observer-widget {
box-sizing: border-box;
display: grid;
gap: 12px;
height: 100%;
overflow: auto;
padding: 12px;
}
.observer-widget__current {
background: color-mix(in srgb, var(--text, #d7dae0) 4%, transparent);
border: 1px solid var(--board-line);
border-left: 3px solid var(--muted, #8a919e);
border-radius: 9px;
display: grid;
gap: 8px;
padding: 10px 11px;
}
.observer-widget__current[data-health="on-track"],
.observer-widget__current[data-health="done"],
.observer-widget__current[data-health="wrapping-up"] {
border-left-color: var(--success, #45c486);
}
.observer-widget__current[data-health="grinding"] {
border-left-color: var(--warning, #e7b85c);
}
.observer-widget__current[data-health="stuck"],
.observer-widget__current[data-health="waiting-on-user"],
.observer-widget__current[data-health="failed"] {
border-left-color: var(--danger, #ff6b6b);
}
.observer-widget__current-heading {
align-items: start;
display: grid;
gap: 9px;
grid-template-columns: auto minmax(0, 1fr);
}
.observer-widget__current-heading > div {
display: grid;
gap: 3px;
min-width: 0;
}
.observer-widget__eyebrow,
.observer-widget__timeline-title,
.observer-widget__run {
color: var(--muted, #8a919e);
font-size: 9px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.observer-widget__current-heading strong {
color: var(--text, #d7dae0);
font-size: 13px;
line-height: 1.35;
}
.observer-widget__assessment {
color: var(--muted, #8a919e);
font-size: 11px;
line-height: 1.45;
margin: 0 0 0 19px;
}
.observer-widget__progress {
align-items: center;
color: var(--muted, #8a919e);
display: grid;
font-size: 9px;
gap: 7px;
grid-template-columns: auto auto minmax(48px, 1fr);
margin-left: 19px;
}
.observer-widget__progress strong {
color: var(--text, #d7dae0);
font-weight: 600;
}
.observer-widget__progress-track {
background: color-mix(in srgb, var(--text, #d7dae0) 9%, transparent);
border-radius: 999px;
height: 3px;
overflow: hidden;
}
.observer-widget__progress-track > span {
background: var(--accent, #ff5c5c);
display: block;
height: 100%;
}
.observer-widget__timeline {
display: grid;
gap: 2px;
}
.observer-widget__timeline-title {
margin-bottom: 3px;
}
.observer-widget__run {
align-items: baseline;
border-top: 1px solid var(--board-line);
display: flex;
gap: 7px;
justify-content: space-between;
margin-top: 5px;
padding: 8px 3px 3px;
}
.observer-widget__run:first-of-type {
border-top: 0;
margin-top: 0;
padding-top: 3px;
}
.observer-widget__run[data-current="true"] > span {
color: var(--text, #d7dae0);
}
.observer-widget__run code {
color: var(--muted, #8a919e);
font-size: 9px;
letter-spacing: 0;
overflow: hidden;
text-overflow: ellipsis;
text-transform: none;
white-space: nowrap;
}
.observer-widget__timeline-row {
align-items: center;
border-radius: 6px;
display: grid;
gap: 7px;
grid-template-columns: 58px auto 66px minmax(0, 1fr);
min-height: 27px;
padding: 3px 5px;
}
.observer-widget__timeline-row--transition {
background: color-mix(in srgb, var(--text, #d7dae0) 4%, transparent);
box-shadow: inset 2px 0 color-mix(in srgb, currentcolor 48%, transparent);
}
.observer-widget__timeline-row > time,
.observer-widget__health-label {
color: var(--muted, #8a919e);
font-size: 9px;
}
.observer-widget__timeline-headline {
color: var(--text, #d7dae0);
font-size: 10.5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.observer-widget__health-dot {
background: var(--muted, #8a919e);
border-radius: 50%;
height: 8px;
margin-top: 3px;
width: 8px;
}
.observer-widget__health-dot[data-health="on-track"],
.observer-widget__health-dot[data-health="done"],
.observer-widget__health-dot[data-health="wrapping-up"] {
background: var(--success, #45c486);
}
.observer-widget__health-dot[data-health="grinding"] {
background: var(--warning, #e7b85c);
}
.observer-widget__health-dot[data-health="stuck"],
.observer-widget__health-dot[data-health="waiting-on-user"],
.observer-widget__health-dot[data-health="failed"] {
background: var(--danger, #ff6b6b);
}
.observer-widget__unread-boundary {
align-items: center;
color: var(--accent, #ff5c5c);
display: grid;
font-size: 8px;
gap: 8px;
grid-template-columns: 1fr auto 1fr;
letter-spacing: 0.08em;
margin: 3px 0;
text-transform: uppercase;
}
.observer-widget__unread-boundary::before,
.observer-widget__unread-boundary::after {
border-top: 1px solid color-mix(in srgb, var(--accent, #ff5c5c) 42%, transparent);
content: "";
}
@media (max-width: 720px) {
.observer-widget__timeline-row {
grid-template-columns: 52px auto minmax(0, 1fr);
}
.observer-widget__health-label {
display: none;
}
}
.board-widget__plugin-loading,
.board-widget__disabled-plugin,
.workboard-widget__state {
align-content: center;
color: var(--muted, #8a919e);
display: grid;
font-size: 11px;
gap: 10px;
justify-items: center;
margin: 0;
min-height: 100%;
padding: 14px;
text-align: center;
}
.board-widget__disabled-plugin strong {
color: var(--text, #d7dae0);
}
openclaw-workboard-card-widget,
openclaw-workboard-mini-widget {
display: block;
min-height: 100%;
}
.workboard-widget-card,
.workboard-widget-mini {
display: grid;
gap: 10px;
padding: 12px;
}
.workboard-widget-card__heading,
.workboard-widget-mini > header,
.workboard-widget-mini__card {
align-items: center;
display: flex;
gap: 8px;
justify-content: space-between;
min-width: 0;
}
.workboard-widget-card__heading > strong,
.workboard-widget-mini__card > strong {
color: var(--text, #d7dae0);
font-size: 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.workboard-widget__status {
border: 1px solid var(--board-line);
border-radius: 999px;
color: var(--muted, #8a919e);
flex: 0 0 auto;
font-size: 9px;
padding: 2px 6px;
}
.workboard-widget__status--ready,
.workboard-widget__status--running {
border-color: color-mix(in srgb, var(--accent, #ff5c5c) 45%, transparent);
color: var(--accent, #ff5c5c);
}
.workboard-widget-card__meta {
display: grid;
gap: 8px;
grid-template-columns: repeat(2, minmax(0, 1fr));
margin: 0;
}
.workboard-widget-card__meta div,
.workboard-widget-mini__counts span {
background: color-mix(in srgb, var(--text, #d7dae0) 3%, transparent);
border: 1px solid var(--board-line);
border-radius: 8px;
min-width: 0;
padding: 7px;
}
.workboard-widget-card__meta dt,
.workboard-widget-card__move > span {
color: var(--muted, #8a919e);
font-size: 9px;
text-transform: uppercase;
}
.workboard-widget-card__meta dd {
color: var(--text, #d7dae0);
font-size: 11px;
margin: 3px 0 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.workboard-widget-card__move {
display: grid;
gap: 4px;
}
.workboard-widget-card__move select {
background: var(--panel, #171a20);
border: 1px solid var(--board-line);
border-radius: 7px;
color: var(--text, #d7dae0);
font: inherit;
padding: 6px 8px;
}
.workboard-widget-mini > header a {
color: var(--accent, #ff5c5c);
font-size: 10px;
}
.workboard-widget-mini__counts {
display: grid;
gap: 5px;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.workboard-widget-mini__counts span {
color: var(--muted, #8a919e);
display: grid;
font-size: 8px;
gap: 2px;
padding: 5px;
}
.workboard-widget-mini__counts b {
color: var(--text, #d7dae0);
font-size: 13px;
}
.workboard-widget-mini__cards {
display: grid;
gap: 5px;
}
.workboard-widget-mini__card {
justify-content: flex-start;
}
.board-widget__mcp-app {
display: grid;
min-height: 100%;
}
.board-widget__mcp-app > .board-widget__grant {
border-bottom: 1px solid var(--board-line);
height: auto;
max-height: 112px;
min-height: 0;
overflow: auto;
padding: 12px;
}
.board-widget__mcp-app-view {
display: block;
min-height: 160px;
width: 100%;
}
.board-widget__app-loading,
.board-widget__stale {
align-content: center;
color: var(--muted, #8a919e);
display: grid;
font-size: 11px;
gap: 8px;
justify-items: center;
min-height: 160px;
padding: 16px;
text-align: center;
}
.board-widget__stale strong {
color: var(--text, #d7dae0);
font-size: 13px;
}
.board-widget__stale > span {
line-height: 1.45;
max-width: 34ch;
}
.board-widget__resize-handle {
bottom: 1px;
cursor: nwse-resize;
height: 20px;
position: absolute;
right: 1px;
touch-action: none;
width: 20px;
}
.board-widget__resize-handle::after {
border-bottom: 2px solid currentcolor;
border-right: 2px solid currentcolor;
bottom: 5px;
content: "";
height: 6px;
position: absolute;
right: 5px;
width: 6px;
}
@media (hover: hover) and (pointer: fine) {
/* Focus keeps keyboard actions reachable; menu-open and dragging keep chrome
pinned when interaction leaves the card bounds. */
.board-widget {
grid-template-rows: minmax(0, 1fr);
}
.board-widget__bar {
backdrop-filter: blur(6px);
background: color-mix(in srgb, var(--board-surface) 92%, transparent);
border-radius: 11px 11px 0 0;
height: 38px;
left: 0;
opacity: 0;
position: absolute;
right: 0;
top: 0;
transition:
opacity 120ms ease,
visibility 0s linear 120ms;
visibility: hidden;
z-index: 5;
/* The overlay strip must not steal clicks from widget content underneath:
only real controls stay interactive, everything else passes through. */
pointer-events: none;
}
/* Capabilities chip stays interactive for its granted-permissions tooltip;
the kind badge and title are display-only and pass clicks through. */
.board-widget__bar > .board-widget__drag-handle,
.board-widget__bar > .board-widget__capabilities,
.board-widget__bar > .board-widget__menu {
pointer-events: auto;
}
.board-widget__resize-handle {
opacity: 0;
transition:
opacity 120ms ease,
visibility 0s linear 120ms;
visibility: hidden;
}
.board-widget:hover .board-widget__bar,
.board-widget:hover .board-widget__resize-handle,
.board-widget:focus-within .board-widget__bar,
.board-widget:focus-within .board-widget__resize-handle,
.board-widget--dragging .board-widget__bar,
.board-widget--dragging .board-widget__resize-handle,
.board-widget:has(.board-widget__menu[open]) .board-widget__bar,
.board-widget:has(.board-widget__menu[open]) .board-widget__resize-handle {
opacity: 1;
/* Delay-only override: reveal flips visibility immediately while the base
shorthand keeps the fade, and reduced-motion's transition: none stays
authoritative because no transition-property is redeclared here. */
transition-delay: 0s;
visibility: visible;
}
/* While chrome is hidden, a granted widget keeps a small trust dot in the
bar's corner; the revealed bar carries the full capabilities chip, so the
dot fades out together with the chrome fade-in. */
.board-widget__grant-dot {
background: var(--ok, #4ec9a8);
border-radius: 50%;
display: block;
height: 6px;
pointer-events: none;
position: absolute;
right: 10px;
top: 10px;
transition: opacity 120ms ease;
width: 6px;
z-index: 4;
}
.board-widget:hover .board-widget__grant-dot,
.board-widget:focus-within .board-widget__grant-dot,
.board-widget--dragging .board-widget__grant-dot,
.board-widget:has(.board-widget__menu[open]) .board-widget__grant-dot {
opacity: 0;
}
/* Frameless is a fine-pointer treatment only: touch keeps the card shell
because there is no hover to rediscover the widget bounds. While dragging,
the reset stops applying so the widget materializes back into a full card
(accent border + drop shadow from --dragging) under the pointer. */
.board-widget--frameless:not(.board-widget--dragging) {
background: transparent;
border-color: transparent;
box-shadow: none;
}
.board-widget--frameless:hover,
.board-widget--frameless:focus-within,
.board-widget--frameless:has(.board-widget__menu[open]) {
border-color: var(--board-line);
}
.board-widget__body {
border-radius: 11px;
}
}
.board-widget__grant,
.board-widget__error {
align-content: center;
display: grid;
gap: 7px;
height: 100%;
justify-items: center;
padding: 16px;
text-align: center;
}
.board-widget__grant strong,
.board-widget__error strong {
color: var(--text, #d7dae0);
font-size: 13px;
}
.board-widget__grant > span,
.board-widget__error > span {
color: var(--muted, #8a919e);
font-size: 11px;
line-height: 1.45;
max-width: 32ch;
}
.board-widget__grant-summary {
color: var(--muted, #8a919e);
display: grid;
font-size: 11px;
gap: 4px;
line-height: 1.45;
margin: 0;
max-width: 36ch;
padding-left: 18px;
text-align: left;
}
.board-widget__grant-groups {
display: grid;
gap: 8px;
max-width: 100%;
text-align: left;
}
.board-widget__grant-groups section {
display: grid;
gap: 3px;
}
.board-widget__grant-groups section > strong {
color: var(--text, #d7dae0);
font-size: 10px;
text-transform: uppercase;
}
.board-widget__capabilities {
background: color-mix(in srgb, var(--success, #4fbf78) 13%, transparent);
border: 1px solid color-mix(in srgb, var(--success, #4fbf78) 45%, transparent);
border-radius: 999px;
color: var(--success, #4fbf78);
display: inline-flex;
font-size: 9px;
font-weight: 650;
line-height: 1;
padding: 3px 6px;
text-transform: uppercase;
}
.board-widget__grant-mark {
align-items: center;
background: color-mix(in srgb, var(--warning, #e6ad55) 15%, transparent);
border: 1px solid color-mix(in srgb, var(--warning, #e6ad55) 55%, transparent);
border-radius: 50%;
color: var(--warning, #e6ad55);
display: flex;
font-size: 13px;
font-weight: 700;
height: 25px;
justify-content: center;
width: 25px;
}
.board-widget__grant-actions {
display: flex;
gap: 7px;
}
.board-widget__grant-actions button:disabled {
cursor: progress;
opacity: 0.55;
}
.board-widget__grant--rejected {
filter: saturate(0.35);
opacity: 0.74;
}
.board-widget__error {
background: color-mix(in srgb, var(--danger, #ff6b6b) 7%, transparent);
}
.board-widget__error--inline {
height: auto;
margin-top: 4px;
padding: 8px;
width: min(100%, 320px);
}
.board-widget__error details {
color: var(--muted, #8a919e);
font-size: 10px;
max-width: 100%;
}
.board-widget__error code {
display: block;
margin-top: 5px;
max-width: 100%;
overflow-wrap: anywhere;
}
.board-empty {
align-items: center;
border: 1px dashed color-mix(in srgb, var(--muted, #8a919e) 38%, transparent);
border-radius: 14px;
color: var(--muted, #8a919e);
display: flex;
flex-direction: column;
gap: 7px;
justify-content: center;
min-height: 260px;
padding: 32px;
text-align: center;
}
.board-empty strong {
color: var(--text, #d7dae0);
font-size: 14px;
}
.board-empty span:last-child {
font-size: 12px;
}
.board-empty__mark {
color: var(--accent, #ff5c5c);
font-size: 24px;
}
.board-announcer {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
@media (prefers-reduced-motion: reduce) {
.board-widget,
.board-widget__bar,
.board-widget__resize-handle,
.board-tabs__tab {
animation: none;
transition: none;
}
}