style: add auth token panel and dashboard styles
This commit is contained in:
parent
188dafdc7a
commit
fac41951d0
1 changed files with 156 additions and 0 deletions
|
|
@ -463,6 +463,157 @@ body {
|
|||
.breakdown-last { font-size: 0.78rem; color: var(--color-secondary); }
|
||||
.empty-msg { color: var(--color-secondary); font-size: 0.88rem; text-align: center; padding: var(--spacing-lg); }
|
||||
|
||||
/* ====== Form Section Title ====== */
|
||||
.form-section-title {
|
||||
font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
|
||||
color: var(--color-primary); margin-top: var(--spacing-md);
|
||||
padding-bottom: var(--spacing-xs); border-bottom: 2px solid rgba(37, 99, 235, 0.15);
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
/* ====== Chat View ====== */
|
||||
.chat-view {
|
||||
display: flex; flex: 1; overflow: hidden; height: 100%;
|
||||
}
|
||||
|
||||
.chat-sidebar {
|
||||
width: 240px; background: #f8fafc; border-right: 1px solid var(--color-border);
|
||||
display: flex; flex-direction: column; padding: var(--spacing-md);
|
||||
gap: var(--spacing-sm); overflow-y: auto;
|
||||
}
|
||||
|
||||
.chat-new-btn { width: 100%; justify-content: center; }
|
||||
|
||||
.chat-model-select { display: flex; flex-direction: column; gap: var(--spacing-xs); }
|
||||
.chat-model-select label { font-size: 0.75rem; font-weight: 600; color: var(--color-text-light); text-transform: uppercase; }
|
||||
.chat-model-select select {
|
||||
padding: 0.4rem 0.5rem; border: 1px solid var(--color-border);
|
||||
border-radius: 6px; font-size: 0.82rem; background: white;
|
||||
}
|
||||
|
||||
.chat-sessions-list {
|
||||
flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
|
||||
}
|
||||
|
||||
.chat-session-item {
|
||||
padding: 0.5rem 0.65rem; border-radius: 6px; cursor: pointer;
|
||||
transition: background 0.15s; border: 1px solid transparent;
|
||||
}
|
||||
.chat-session-item:hover { background: rgba(37, 99, 235, 0.05); }
|
||||
.chat-session-item.active {
|
||||
background: rgba(37, 99, 235, 0.1); border-color: rgba(37, 99, 235, 0.2);
|
||||
}
|
||||
|
||||
.chat-session-preview {
|
||||
font-size: 0.82rem; font-weight: 600; color: var(--color-text);
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.chat-session-meta {
|
||||
font-size: 0.72rem; color: var(--color-text-light); margin-top: 2px;
|
||||
}
|
||||
|
||||
.chat-ws-status {
|
||||
font-size: 0.75rem; color: var(--color-text-light);
|
||||
padding-top: var(--spacing-sm); border-top: 1px solid var(--color-border);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Chat Main Area */
|
||||
.chat-main {
|
||||
flex: 1; display: flex; flex-direction: column; overflow: hidden; background: white;
|
||||
}
|
||||
|
||||
.chat-messages {
|
||||
flex: 1; overflow-y: auto; padding: var(--spacing-lg) var(--spacing-xl);
|
||||
display: flex; flex-direction: column; gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.chat-empty {
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||||
height: 100%; gap: var(--spacing-md); color: var(--color-text-light); text-align: center;
|
||||
}
|
||||
.chat-empty-icon { font-size: 3rem; opacity: 0.5; }
|
||||
.chat-empty h3 { font-size: 1.25rem; color: var(--color-text); font-weight: 600; }
|
||||
.chat-empty-hint { font-size: 0.85rem; max-width: 400px; line-height: 1.5; }
|
||||
|
||||
/* Chat Messages */
|
||||
.chat-msg {
|
||||
display: flex; gap: var(--spacing-md); max-width: 85%;
|
||||
animation: chatFadeIn 0.2s ease-out;
|
||||
}
|
||||
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
|
||||
.chat-msg.assistant { align-self: flex-start; }
|
||||
.chat-msg.error { align-self: center; }
|
||||
|
||||
@keyframes chatFadeIn {
|
||||
from { opacity: 0; transform: translateY(6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.chat-msg-avatar {
|
||||
width: 32px; height: 32px; border-radius: 50%; display: flex;
|
||||
align-items: center; justify-content: center; font-size: 0.9rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.chat-msg.user .chat-msg-avatar { background: var(--color-primary); color: white; }
|
||||
.chat-msg.assistant .chat-msg-avatar { background: #8b5cf6; color: white; }
|
||||
.chat-msg.error .chat-msg-avatar { background: var(--color-danger); color: white; }
|
||||
|
||||
.chat-msg-content {
|
||||
flex: 1; min-width: 0;
|
||||
}
|
||||
|
||||
.chat-msg-text {
|
||||
padding: var(--spacing-md); border-radius: var(--radius-lg);
|
||||
font-size: 0.875rem; line-height: 1.6; white-space: pre-wrap;
|
||||
word-break: break-word; font-family: inherit; margin: 0;
|
||||
background: transparent;
|
||||
}
|
||||
.chat-msg.user .chat-msg-text {
|
||||
background: var(--color-primary); color: white; border-bottom-right-radius: 4px;
|
||||
}
|
||||
.chat-msg.assistant .chat-msg-text {
|
||||
background: var(--color-bg-light); color: var(--color-text);
|
||||
border: 1px solid var(--color-border); border-bottom-left-radius: 4px;
|
||||
}
|
||||
.chat-msg.error .chat-msg-text {
|
||||
background: #fef2f2; color: var(--color-danger);
|
||||
border: 1px solid #fecaca; font-size: 0.82rem;
|
||||
}
|
||||
|
||||
/* Streaming cursor blink */
|
||||
.chat-msg.assistant .chat-msg-text {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Chat Input */
|
||||
.chat-input-area {
|
||||
display: flex; gap: var(--spacing-sm); padding: var(--spacing-md) var(--spacing-xl);
|
||||
border-top: 1px solid var(--color-border); background: white; align-items: flex-end;
|
||||
}
|
||||
|
||||
.chat-input {
|
||||
flex: 1; padding: var(--spacing-md); border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg); font-size: 0.875rem; font-family: inherit;
|
||||
resize: none; min-height: 44px; max-height: 160px; line-height: 1.5;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
.chat-input:focus {
|
||||
outline: none; border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
||||
}
|
||||
.chat-input::placeholder { color: var(--color-text-light); }
|
||||
|
||||
.chat-send-btn {
|
||||
width: 44px; height: 44px; border-radius: 50%; border: none;
|
||||
background: var(--color-primary); color: white; font-size: 1.1rem;
|
||||
cursor: pointer; transition: all 0.15s; display: flex;
|
||||
align-items: center; justify-content: center; flex-shrink: 0;
|
||||
}
|
||||
.chat-send-btn:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
|
||||
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
|
||||
/* Scrollbar */
|
||||
::-webkit-scrollbar { width: 8px; height: 8px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
|
|
@ -480,4 +631,9 @@ body {
|
|||
.form-row { grid-template-columns: 1fr; }
|
||||
.auth-methods { grid-template-columns: 1fr; }
|
||||
.header-right { flex-wrap: wrap; gap: var(--spacing-sm); }
|
||||
.chat-view { flex-direction: column; }
|
||||
.chat-sidebar { width: 100%; max-height: 30vh; border-right: none; border-bottom: 1px solid var(--color-border); }
|
||||
.chat-msg { max-width: 95%; }
|
||||
.chat-messages { padding: var(--spacing-md); }
|
||||
.chat-input-area { padding: var(--spacing-sm) var(--spacing-md); }
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue