Changeset 0.5.0 (#35)
This commit is contained in:
@@ -56,6 +56,21 @@ a:hover { text-decoration: underline; }
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* Brand / collapse toggle */
|
||||
.sb-brand {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 8px 10px; border-radius: var(--radius);
|
||||
background: none; border: none; color: var(--text);
|
||||
cursor: pointer; font-size: 13px; white-space: nowrap;
|
||||
transition: background var(--transition); width: 100%;
|
||||
}
|
||||
.sb-brand:hover { background: var(--bg-hover); }
|
||||
.brand-logo { font-size: 18px; flex-shrink: 0; display: inline; }
|
||||
.brand-collapse { flex-shrink: 0; display: none; color: var(--text-2); }
|
||||
.sb-brand:hover .brand-logo { display: none; }
|
||||
.sb-brand:hover .brand-collapse { display: inline; }
|
||||
.brand-text { font-weight: 600; font-size: 14px; }
|
||||
|
||||
.sb-btn {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 8px 10px; border-radius: var(--radius);
|
||||
@@ -68,6 +83,7 @@ a:hover { text-decoration: underline; }
|
||||
.sb-btn svg { flex-shrink: 0; }
|
||||
.sb-label { overflow: hidden; transition: opacity var(--transition); }
|
||||
.sidebar.collapsed .sb-label { opacity: 0; width: 0; }
|
||||
.sidebar.collapsed .brand-text { opacity: 0; width: 0; }
|
||||
|
||||
/* Chat list */
|
||||
.sidebar-chats {
|
||||
@@ -135,11 +151,16 @@ a:hover { text-decoration: underline; }
|
||||
justify-content: center; font-size: 13px; font-weight: 600;
|
||||
color: var(--accent); flex-shrink: 0; position: relative;
|
||||
}
|
||||
.avatar-dot {
|
||||
position: absolute; bottom: -1px; right: -1px;
|
||||
width: 9px; height: 9px; border-radius: 50%;
|
||||
background: var(--success); border: 2px solid var(--bg-surface);
|
||||
.avatar-bug {
|
||||
position: absolute; bottom: -3px; right: -3px;
|
||||
font-size: 10px; line-height: 1;
|
||||
transition: filter var(--transition);
|
||||
}
|
||||
.avatar-bug.has-errors {
|
||||
filter: drop-shadow(0 0 4px var(--danger));
|
||||
animation: bug-pulse 1.5s ease infinite;
|
||||
}
|
||||
@keyframes bug-pulse { 0%,100% { filter: drop-shadow(0 0 3px var(--danger)); } 50% { filter: drop-shadow(0 0 8px var(--danger)); } }
|
||||
.user-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
/* Flyout */
|
||||
@@ -182,6 +203,25 @@ a:hover { text-decoration: underline; }
|
||||
.model-bar select:focus { outline: none; border-color: var(--accent); }
|
||||
.model-bar select option { background: var(--bg-surface); color: var(--text); }
|
||||
|
||||
.model-caps {
|
||||
display: flex; align-items: center; gap: 4px;
|
||||
margin-left: 4px; flex-wrap: wrap;
|
||||
}
|
||||
.cap-badge {
|
||||
display: inline-flex; align-items: center; gap: 3px;
|
||||
font-size: 10px; line-height: 1; padding: 2px 6px;
|
||||
border-radius: 3px; white-space: nowrap;
|
||||
background: var(--bg-raised); color: var(--text-3);
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.cap-badge.cap-accent {
|
||||
color: var(--accent); border-color: color-mix(in srgb, var(--accent), transparent 80%);
|
||||
background: color-mix(in srgb, var(--accent), transparent 92%);
|
||||
}
|
||||
.cap-badge.cap-context {
|
||||
color: var(--text-3);
|
||||
}
|
||||
|
||||
.icon-btn {
|
||||
background: none; border: none; color: var(--text-3); cursor: pointer;
|
||||
padding: 4px; border-radius: 4px;
|
||||
@@ -413,6 +453,7 @@ button { font-family: var(--font); cursor: pointer; }
|
||||
}
|
||||
.form-row { display: flex; gap: 0.75rem; }
|
||||
.form-row .form-group { flex: 1; }
|
||||
.form-hint { font-weight: 400; color: var(--text-3); margin-left: 4px; }
|
||||
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; margin: 0.5rem 0; color: var(--text-2); }
|
||||
|
||||
/* ── Modal ────────────────────────────────── */
|
||||
@@ -475,6 +516,8 @@ button { font-family: var(--font); cursor: pointer; }
|
||||
.admin-user-row { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
|
||||
.admin-user-email { font-size: 11px; color: var(--text-3); }
|
||||
.admin-model-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
|
||||
.admin-model-row .model-caps-inline { display: flex; gap: 3px; margin-left: auto; }
|
||||
.admin-model-row .provider-meta { min-width: 80px; text-align: right; }
|
||||
.badge-admin { background: var(--accent); color: #fff; font-size: 10px; padding: 1px 8px; border-radius: 4px; }
|
||||
.badge-user { background: var(--bg-raised); color: var(--text-3); font-size: 10px; padding: 1px 8px; border-radius: 4px; }
|
||||
.badge-inactive { background: var(--danger); color: #fff; font-size: 10px; padding: 1px 8px; border-radius: 4px; }
|
||||
@@ -526,4 +569,5 @@ button { font-family: var(--font); cursor: pointer; }
|
||||
.sidebar { position: fixed; z-index: 100; height: 100%; }
|
||||
.sidebar.collapsed { width: 0; border: none; }
|
||||
.msg-inner { padding: 0 1rem; }
|
||||
.model-caps { display: none; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user