Changeset 0.7.0 (#37)

This commit is contained in:
2026-02-21 12:43:33 +00:00
parent 925b70f98c
commit a95e246cd7
18 changed files with 1424 additions and 115 deletions

View File

@@ -54,7 +54,7 @@ a:hover { text-decoration: underline; }
/* ── App Shell ───────────────────────────── */
.app { display: flex; height: 100vh; flex-direction: column; }
.app { display: flex; height: 100vh; height: 100dvh; flex-direction: column; }
.app-body { display: flex; flex: 1; min-height: 0; }
/* ── Environment Banners ──────────────────── */
@@ -279,9 +279,11 @@ a:hover { text-decoration: underline; }
.avatar-bug {
position: absolute; bottom: -3px; right: -3px;
font-size: 10px; line-height: 1;
display: none;
transition: filter var(--transition);
}
.avatar-bug.has-errors {
display: block;
filter: drop-shadow(0 0 4px var(--danger));
animation: bug-pulse 1.5s ease infinite;
}
@@ -328,6 +330,45 @@ 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); }
/* ── Custom Model Dropdown ───────────────── */
.model-dropdown { position: relative; }
.model-dropdown-btn {
display: flex; align-items: center; gap: 6px;
background: none; border: 1px solid transparent;
color: var(--text); font-size: 14px; font-weight: 500;
padding: 4px 8px; border-radius: var(--radius); cursor: pointer;
font-family: var(--font); max-width: 340px;
transition: border-color var(--transition);
}
.model-dropdown-btn:hover { border-color: var(--border); }
.model-dropdown-btn svg { flex-shrink: 0; opacity: 0.5; }
.model-dropdown-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-dropdown-menu {
display: none; position: absolute; top: 100%; left: 0; z-index: 200;
min-width: 280px; max-width: 400px; max-height: 400px; overflow-y: auto;
background: var(--bg-raised); border: 1px solid var(--border-light);
border-radius: var(--radius); padding: 4px;
box-shadow: 0 4px 16px rgba(0,0,0,0.4);
margin-top: 4px;
}
.model-dropdown-menu.open { display: block; }
.model-dropdown-group {
padding: 6px 10px 4px; font-size: 11px; font-weight: 600;
color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px;
}
.model-dropdown-item {
display: flex; align-items: center; gap: 8px;
padding: 7px 10px; border-radius: 4px;
cursor: pointer; font-size: 13px;
color: var(--text-2); white-space: nowrap;
transition: background var(--transition), color var(--transition);
}
.model-dropdown-item:hover { background: var(--bg-hover); color: var(--text); }
.model-dropdown-item.selected { background: var(--bg-hover); color: var(--accent); }
.model-dropdown-item .item-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.model-dropdown-item .item-provider { margin-left: auto; font-size: 10px; color: var(--text-3); }
.model-caps {
display: flex; align-items: center; gap: 4px;
margin-left: 4px; flex-wrap: wrap;
@@ -386,7 +427,7 @@ a:hover { text-decoration: underline; }
}
.msg-action-btn:hover { background: var(--bg-hover); color: var(--text); }
.msg-text { font-size: 14px; line-height: 1.7; }
.msg-text { font-size: var(--msg-font, 14px); line-height: 1.7; }
/* ── Markdown Content ────────────────────── */
@@ -651,8 +692,8 @@ button { font-family: var(--font); cursor: pointer; }
/* Splash responsive */
@media (max-width: 860px) {
.splash { flex-direction: column; }
.splash-hero { padding: 2.5rem 1.75rem 2rem; min-height: auto; }
.splash { flex-direction: column; min-height: 100vh; min-height: 100dvh; overflow-y: auto; }
.splash-hero { padding: 2.5rem 1.75rem 2rem; min-height: auto; flex: none; }
.hero-headline { font-size: 1.8rem; }
.hero-sub { font-size: 0.95rem; margin-bottom: 1.5rem; }
.hero-version { margin-top: 1.5rem; }
@@ -660,14 +701,19 @@ button { font-family: var(--font); cursor: pointer; }
.auth-card { max-width: 400px; }
}
@media (max-width: 480px) {
.splash-hero { padding: 2rem 1.25rem 1.5rem; }
.hero-logo-row { gap: 10px; margin-bottom: 1rem; }
.splash-hero { padding: 1.5rem 1.25rem 1rem; }
.hero-logo-row { gap: 10px; margin-bottom: 0.75rem; }
.hero-logo-mark { width: 40px; height: 40px; }
.hero-wordmark { font-size: 1.3rem; }
.hero-headline { font-size: 1.5rem; }
.hero-sub { font-size: 0.88rem; }
.hero-headline { font-size: 1.35rem; margin-bottom: 0.5rem; }
.hero-sub { font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.5; }
.hero-features { gap: 6px; }
.hero-pill { padding: 5px 10px; font-size: 0.72rem; }
.hero-version { margin-top: 1rem; }
.splash-auth { padding: 1.5rem 1.25rem; }
.auth-card-header { margin-bottom: 1rem; }
.auth-card-header h2 { font-size: 1.1rem; }
.auth-actions { margin-top: 1rem; }
}
/* ── Forms ────────────────────────────────── */
@@ -686,6 +732,20 @@ 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; }
.range-input {
width: 100%; height: 4px; -webkit-appearance: none; appearance: none;
background: var(--border); border-radius: 2px; outline: none;
margin: 8px 0 4px; cursor: pointer;
}
.range-input::-webkit-slider-thumb {
-webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
background: var(--accent); border: 2px solid var(--bg-surface); cursor: pointer;
}
.range-input::-moz-range-thumb {
width: 16px; height: 16px; border-radius: 50%;
background: var(--accent); border: 2px solid var(--bg-surface); cursor: pointer;
}
.range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; margin: 0.5rem 0; color: var(--text-2); }
/* ── Modal ────────────────────────────────── */
@@ -797,9 +857,20 @@ button { font-family: var(--font); cursor: pointer; }
}
.admin-provider-row .provider-name { font-weight: 500; flex: 1; }
.admin-provider-row .provider-endpoint { font-size: 12px; color: var(--text-3); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-edit { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 16px; padding: 2px 6px; }
.btn-edit:hover { color: var(--accent); }
.admin-provider-row .btn-delete { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 16px; padding: 2px 6px; }
.admin-provider-row .btn-delete:hover { color: var(--danger); }
.admin-preset-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-preset-row .preset-info { flex: 1; min-width: 0; }
.admin-preset-row .preset-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.admin-preset-row .preset-desc { font-size: 12px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-preset-row .preset-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.admin-preset-row .btn-delete { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 16px; padding: 2px 6px; }
.admin-preset-row .btn-delete:hover { color: var(--danger); }
.badge-user { font-size: 10px; padding: 1px 6px; border-radius: 3px; background: var(--accent-bg); color: var(--accent); }
/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.stat-card {
@@ -888,9 +959,24 @@ button { font-family: var(--font); cursor: pointer; }
/* ── Responsive ──────────────────────────── */
.mobile-menu-btn {
display: none; align-items: center; justify-content: center;
background: none; border: none; color: var(--text-2);
cursor: pointer; padding: 4px; border-radius: var(--radius);
transition: color var(--transition);
}
.mobile-menu-btn:hover { color: var(--text); }
.sidebar-overlay {
display: none; position: fixed; inset: 0; z-index: 99;
background: rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
.sidebar { position: fixed; z-index: 100; height: 100%; }
.sidebar.collapsed { width: 0; border: none; }
.sidebar { position: fixed; z-index: 100; height: 100%; transition: width 0.2s ease; }
.sidebar.collapsed { width: 0; border: none; overflow: hidden; }
.msg-inner { padding: 0 1rem; }
.model-caps { display: none; }
.input-area { padding: 0 0.5rem 0.5rem; }
.input-wrap textarea { font-size: 16px; } /* prevent iOS zoom */
.mobile-menu-btn { display: flex; }
}