Drafts in every chat, factory chat overlay, factory main switch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Sonnet 5.5 committed 2026-11-20 12:14:04 +01:00
1 parent 58475ce65e
commit 171b87b766
48 files changed
+754 -10

No files matched your search

+136
View File
@@ -5168,6 +5168,142 @@ td.fold-indent {
grid-column: span 2;
min-width: 0;
}
/* Main switch of the factory. The colours come from the theme (--power-on / -warn / -off). */
.factory-power {
--tone: var(--power-off, var(--red));
display: flex;
align-items: center;
gap: 14px;
width: 100%;
margin: 0 0 12px;
padding: 10px 16px;
text-align: left;
color: var(--fg0);
background: color-mix(in srgb, var(--tone) 18%, var(--bg1));
border: 2px solid var(--tone);
border-radius: 12px;
cursor: pointer;
transition: background 0.25s, border-color 0.25s;
}
.factory-power.running {
--tone: var(--power-on, var(--green));
}
.factory-power.stopping {
--tone: var(--power-warn, var(--accent));
}
.factory-power.stopped {
--tone: var(--power-off, var(--red));
}
.factory-power:hover {
background: color-mix(in srgb, var(--tone) 26%, var(--bg1));
}
.factory-power-track {
position: relative;
flex: none;
width: 52px;
height: 28px;
border-radius: 14px;
background: var(--tone);
transition: background 0.25s;
}
.factory-power-knob {
position: absolute;
top: 3px;
left: 3px;
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--bg0);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
transition: transform 0.2s;
}
/* on = knob right; stopping is still "off" but pulses until the last agent is done */
.factory-power.running .factory-power-knob {
transform: translateX(24px);
}
.factory-power.stopping .factory-power-track {
animation: factory-pulse 1.4s ease-in-out infinite;
}
.factory-power-text {
display: flex;
flex-direction: column;
gap: 1px;
}
.factory-power-text b {
font-size: 15px;
}
/* Chats of the factory open over the board. */
.chat-overlay {
position: fixed;
inset: 0;
z-index: 25;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
padding: 3vh 3vw;
}
.chat-overlay-box {
width: min(1200px, 100%);
height: 100%;
background: var(--bg0);
border: 1px solid var(--bg2);
border-radius: 12px;
box-shadow: var(--shadow, 0 12px 40px rgba(0, 0, 0, 0.45));
display: flex;
flex-direction: column;
overflow: hidden;
}
.chat-overlay-bar {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
background: var(--bg1);
border-bottom: 1px solid var(--bg2);
}
.chat-overlay-body {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
@media (max-width: 800px) {
.chat-overlay {
padding: 0;
}
.chat-overlay-box {
border-radius: 0;
border: 0;
}
}
.factory-card-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
width: 100%;
}
.factory-open {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 6px;
color: var(--muted);
cursor: pointer;
}
.factory-open:hover,
.factory-open:focus-visible {
color: var(--fg0);
background: var(--bg2);
}
.factory-open .icon {
width: 15px;
height: 15px;
}
.factory-card.active {
border-color: var(--accent);
}