215 lines
4.1 KiB
CSS
215 lines
4.1 KiB
CSS
.swarm-assistent-root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: calc(100vh - 8rem);
|
|
min-height: 28rem;
|
|
padding: 0.5rem;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.sa-gate {
|
|
padding: 1.25rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.sa-layout {
|
|
display: flex;
|
|
flex: 1;
|
|
gap: 0.75rem;
|
|
min-height: 0;
|
|
}
|
|
|
|
.sa-image-pane {
|
|
flex: 0 0 32%;
|
|
max-width: 22rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
min-width: 12rem;
|
|
}
|
|
|
|
.sa-image-frame {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
|
|
border-radius: 0.35rem;
|
|
overflow: hidden;
|
|
background: color-mix(in srgb, currentColor 6%, transparent);
|
|
min-height: 14rem;
|
|
}
|
|
|
|
.sa-image-frame img {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.sa-image-empty {
|
|
padding: 1rem;
|
|
text-align: center;
|
|
opacity: 0.65;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.sa-image-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.sa-chat-pane {
|
|
flex: 1 1 68%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
|
|
border-radius: 0.35rem;
|
|
}
|
|
|
|
.sa-chat-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
padding: 0.45rem 0.65rem;
|
|
border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
|
|
}
|
|
|
|
.sa-chat-title {
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.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.65rem;
|
|
border-bottom: 1px solid color-mix(in srgb, currentColor 20%, 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-check {
|
|
flex-direction: row !important;
|
|
align-items: center;
|
|
gap: 0.4rem !important;
|
|
}
|
|
|
|
.sa-messages {
|
|
flex: 1;
|
|
overflow: auto;
|
|
padding: 0.75rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
.sa-msg {
|
|
max-width: 95%;
|
|
padding: 0.55rem 0.7rem;
|
|
border-radius: 0.35rem;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.sa-msg.user {
|
|
align-self: flex-end;
|
|
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
}
|
|
|
|
.sa-msg.assistant {
|
|
align-self: flex-start;
|
|
background: color-mix(in srgb, currentColor 7%, transparent);
|
|
}
|
|
|
|
.sa-msg.error {
|
|
align-self: stretch;
|
|
border: 1px solid color-mix(in srgb, #c44 50%, transparent);
|
|
}
|
|
|
|
.sa-patch {
|
|
margin-top: 0.5rem;
|
|
padding-top: 0.45rem;
|
|
border-top: 1px dashed color-mix(in srgb, currentColor 25%, transparent);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.sa-patch-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
margin-top: 0.4rem;
|
|
}
|
|
|
|
.sa-composer {
|
|
border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
|
|
padding: 0.55rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.sa-composer textarea {
|
|
width: 100%;
|
|
resize: vertical;
|
|
box-sizing: border-box;
|
|
min-height: 4rem;
|
|
}
|
|
|
|
.sa-composer-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.sa-status {
|
|
font-size: 0.85rem;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.sa-disabled {
|
|
opacity: 0.45;
|
|
pointer-events: none;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.sa-layout {
|
|
flex-direction: column;
|
|
}
|
|
.sa-image-pane {
|
|
flex: 0 0 auto;
|
|
max-width: none;
|
|
max-height: 40%;
|
|
}
|
|
}
|