Livebar and waiting_ollama phase while the model loads into GPU; bump context past Ollama's 4096 default that truncated Assistent packs. Co-authored-by: Cursor <cursoragent@cursor.com>
544 lines
12 KiB
CSS
544 lines
12 KiB
CSS
.swarm-assistent-root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: calc(100vh - 8rem);
|
|
min-height: 28rem;
|
|
padding: 0.5rem 0.65rem 0.65rem;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.sa-gate {
|
|
padding: 1.25rem 1.5rem;
|
|
margin-bottom: 0.5rem;
|
|
border-radius: 0.5rem;
|
|
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
background: color-mix(in srgb, currentColor 6%, transparent);
|
|
opacity: 0.95;
|
|
}
|
|
|
|
.sa-layout {
|
|
display: flex;
|
|
flex: 1;
|
|
gap: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
.sa-image-pane {
|
|
flex: 0 0 var(--sa-image-width, 34%);
|
|
max-width: 40%;
|
|
min-width: 11rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.sa-splitter {
|
|
flex: 0 0 0.45rem;
|
|
margin: 0 0.15rem;
|
|
cursor: col-resize;
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
transition: background 0.15s ease;
|
|
align-self: stretch;
|
|
}
|
|
|
|
.sa-splitter:hover,
|
|
.sa-splitter.sa-dragging {
|
|
background: color-mix(in srgb, currentColor 35%, transparent);
|
|
}
|
|
|
|
.sa-image-frame {
|
|
position: relative;
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px dashed color-mix(in srgb, currentColor 28%, transparent);
|
|
border-radius: 0.55rem;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(ellipse at 30% 20%, color-mix(in srgb, currentColor 8%, transparent), transparent 55%),
|
|
color-mix(in srgb, currentColor 4%, transparent);
|
|
min-height: 14rem;
|
|
outline: none;
|
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
|
|
.sa-image-frame:focus-visible {
|
|
box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 35%, transparent);
|
|
}
|
|
|
|
.sa-image-frame.sa-has-image {
|
|
border-style: solid;
|
|
}
|
|
|
|
.sa-image-frame.sa-dragover {
|
|
border-color: color-mix(in srgb, currentColor 70%, transparent);
|
|
box-shadow: inset 0 0 0 2px color-mix(in srgb, currentColor 25%, transparent);
|
|
}
|
|
|
|
.sa-image-frame img {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
display: block;
|
|
}
|
|
|
|
.sa-image-empty {
|
|
padding: 1.25rem 1rem;
|
|
text-align: center;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.sa-empty-title {
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.sa-empty-hint {
|
|
font-size: 0.88rem;
|
|
line-height: 1.4;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.sa-drop-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: color-mix(in srgb, currentColor 18%, transparent);
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sa-vision-chip {
|
|
position: absolute;
|
|
top: 0.45rem;
|
|
left: 0.45rem;
|
|
padding: 0.15rem 0.45rem;
|
|
border-radius: 999px;
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
background: color-mix(in srgb, currentColor 16%, transparent);
|
|
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
|
|
}
|
|
|
|
.sa-image-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.45rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.sa-chat-pane {
|
|
flex: 1 1 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
border-radius: 0.55rem;
|
|
background: color-mix(in srgb, currentColor 3%, transparent);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sa-chat-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 0.75rem;
|
|
border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
|
|
background: color-mix(in srgb, currentColor 5%, transparent);
|
|
}
|
|
|
|
.sa-chat-title {
|
|
font-weight: 650;
|
|
letter-spacing: 0.03em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
}
|
|
|
|
.sa-live-dot {
|
|
width: 0.55rem;
|
|
height: 0.55rem;
|
|
border-radius: 50%;
|
|
background: #6ee7a8;
|
|
box-shadow: 0 0 0 0 color-mix(in srgb, #6ee7a8 70%, transparent);
|
|
animation: sa-pulse 1.4s ease-out infinite;
|
|
}
|
|
|
|
.sa-chat-empty {
|
|
margin: auto;
|
|
padding: 1.5rem 1.1rem;
|
|
text-align: center;
|
|
opacity: 0.72;
|
|
max-width: 22rem;
|
|
}
|
|
|
|
.sa-chat-empty-title {
|
|
font-weight: 650;
|
|
letter-spacing: 0.03em;
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
|
|
.sa-chat-empty-hint {
|
|
font-size: 0.9rem;
|
|
line-height: 1.45;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.sa-livebar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.55rem;
|
|
padding: 0.45rem 0.85rem;
|
|
border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
|
|
background: color-mix(in srgb, currentColor 6%, transparent);
|
|
font-size: 0.88rem;
|
|
min-height: 2.1rem;
|
|
}
|
|
|
|
.sa-livebar[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.sa-livebar-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
opacity: 0.92;
|
|
}
|
|
|
|
.sa-elapsed {
|
|
font-variant-numeric: tabular-nums;
|
|
opacity: 0.65;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.sa-spinner {
|
|
width: 0.85rem;
|
|
height: 0.85rem;
|
|
border-radius: 50%;
|
|
border: 2px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
border-top-color: currentColor;
|
|
animation: sa-spin 0.7s linear infinite;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.sa-msg {
|
|
animation: sa-msg-in 0.28s ease;
|
|
}
|
|
|
|
.sa-msg.sa-typing {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.55rem;
|
|
font-style: normal;
|
|
opacity: 0.85;
|
|
min-height: 2.4rem;
|
|
}
|
|
|
|
.sa-typing-label {
|
|
opacity: 0.75;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.sa-dots {
|
|
display: inline-flex;
|
|
gap: 0.22rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.sa-dots i {
|
|
width: 0.42rem;
|
|
height: 0.42rem;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
opacity: 0.35;
|
|
animation: sa-dot 1.1s ease-in-out infinite;
|
|
}
|
|
|
|
.sa-dots i:nth-child(2) { animation-delay: 0.15s; }
|
|
.sa-dots i:nth-child(3) { animation-delay: 0.3s; }
|
|
|
|
.sa-is-busy .sa-primary {
|
|
opacity: 0.55;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sa-input-busy {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.sa-composer-busy {
|
|
box-shadow: inset 0 1px 0 color-mix(in srgb, currentColor 12%, transparent);
|
|
}
|
|
|
|
.sa-status.sa-status-busy {
|
|
opacity: 0.9;
|
|
font-weight: 560;
|
|
}
|
|
|
|
@keyframes sa-spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes sa-pulse {
|
|
0% { box-shadow: 0 0 0 0 color-mix(in srgb, #6ee7a8 55%, transparent); }
|
|
70% { box-shadow: 0 0 0 0.45rem transparent; }
|
|
100% { box-shadow: 0 0 0 0 transparent; }
|
|
}
|
|
|
|
@keyframes sa-dot {
|
|
0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
|
|
40% { opacity: 1; transform: translateY(-0.18rem); }
|
|
}
|
|
|
|
@keyframes sa-msg-in {
|
|
from { opacity: 0; transform: translateY(0.35rem); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
|
|
.sa-header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.sa-icon-btn {
|
|
min-width: 2rem;
|
|
padding-left: 0.45rem;
|
|
padding-right: 0.45rem;
|
|
}
|
|
|
|
.sa-settings {
|
|
display: grid;
|
|
gap: 0.45rem;
|
|
padding: 0.7rem 0.75rem;
|
|
border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
|
|
background: color-mix(in srgb, currentColor 5%, transparent);
|
|
}
|
|
|
|
.sa-settings label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.sa-settings input[type="text"],
|
|
.sa-select {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.sa-header-right .sa-select {
|
|
width: auto;
|
|
min-width: 9rem;
|
|
max-width: 12rem;
|
|
}
|
|
|
|
.sa-header-right .sa-model-select {
|
|
min-width: 14rem;
|
|
max-width: 24rem;
|
|
}
|
|
|
|
.sa-check {
|
|
flex-direction: row !important;
|
|
align-items: center;
|
|
gap: 0.4rem !important;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.sa-messages {
|
|
flex: 1;
|
|
overflow: auto;
|
|
padding: 0.85rem 0.9rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.7rem;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
.sa-msg {
|
|
max-width: 92%;
|
|
padding: 0.6rem 0.8rem;
|
|
border-radius: 0.75rem;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
line-height: 1.4;
|
|
box-shadow: 0 1px 0 color-mix(in srgb, currentColor 8%, transparent);
|
|
}
|
|
|
|
.sa-msg.user {
|
|
align-self: flex-end;
|
|
border-bottom-right-radius: 0.25rem;
|
|
background: color-mix(in srgb, currentColor 14%, transparent);
|
|
}
|
|
|
|
.sa-msg.assistant {
|
|
align-self: flex-start;
|
|
border-bottom-left-radius: 0.25rem;
|
|
background: color-mix(in srgb, currentColor 7%, transparent);
|
|
}
|
|
|
|
.sa-msg.error {
|
|
align-self: stretch;
|
|
border: 1px solid color-mix(in srgb, #c44 55%, transparent);
|
|
background: color-mix(in srgb, #c44 12%, transparent);
|
|
}
|
|
|
|
.sa-msg.sa-system {
|
|
align-self: center;
|
|
max-width: 100%;
|
|
font-size: 0.85rem;
|
|
opacity: 0.75;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
text-align: center;
|
|
}
|
|
|
|
.sa-patch {
|
|
margin-top: 0.55rem;
|
|
padding-top: 0.5rem;
|
|
border-top: 1px dashed color-mix(in srgb, currentColor 25%, transparent);
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.sa-patch pre {
|
|
margin: 0;
|
|
max-height: 10rem;
|
|
overflow: auto;
|
|
padding: 0.45rem 0.55rem;
|
|
border-radius: 0.35rem;
|
|
background: color-mix(in srgb, currentColor 6%, transparent);
|
|
}
|
|
|
|
.sa-patch-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
margin-top: 0.45rem;
|
|
}
|
|
|
|
.sa-danger {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.sa-civitai-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.45rem;
|
|
margin-top: 0.55rem;
|
|
}
|
|
|
|
.sa-civitai-card {
|
|
padding: 0.5rem 0.6rem;
|
|
border-radius: 0.45rem;
|
|
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
background: color-mix(in srgb, currentColor 5%, transparent);
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.sa-civitai-card.sa-installed {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.sa-civitai-title {
|
|
font-weight: 600;
|
|
margin-bottom: 0.2rem;
|
|
}
|
|
|
|
.sa-civitai-meta {
|
|
opacity: 0.8;
|
|
font-size: 0.82rem;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.sa-civitai-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.sa-streaming {
|
|
opacity: 0.9;
|
|
font-style: italic;
|
|
}
|
|
|
|
.sa-interrupt-active {
|
|
border-color: color-mix(in srgb, #c44 55%, transparent) !important;
|
|
}
|
|
|
|
.sa-composer {
|
|
border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
|
|
padding: 0.6rem 0.7rem 0.7rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.45rem;
|
|
background: color-mix(in srgb, currentColor 4%, transparent);
|
|
}
|
|
|
|
.sa-composer textarea {
|
|
width: 100%;
|
|
resize: vertical;
|
|
box-sizing: border-box;
|
|
min-height: 4.25rem;
|
|
border-radius: 0.45rem;
|
|
padding: 0.55rem 0.65rem;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.sa-composer-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.sa-primary {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sa-status {
|
|
font-size: 0.85rem;
|
|
opacity: 0.75;
|
|
margin-left: 0.15rem;
|
|
}
|
|
|
|
.sa-disabled {
|
|
opacity: 0.45;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sa-flash {
|
|
animation: sa-flash 0.85s ease;
|
|
}
|
|
|
|
@keyframes sa-flash {
|
|
0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
|
|
40% { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 20%, transparent); }
|
|
100% { box-shadow: 0 0 0 0 transparent; }
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.sa-layout {
|
|
flex-direction: column;
|
|
}
|
|
.sa-image-pane {
|
|
flex: 0 0 auto;
|
|
max-width: none;
|
|
max-height: 38%;
|
|
width: 100% !important;
|
|
}
|
|
.sa-splitter {
|
|
display: none;
|
|
}
|
|
}
|