mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
* UI: polish dashboard — agents overview, chat toolbar, debug simplification, login UX * fix(ui): restore chat draft ordering, remove extra toolbar buttons * UI: replace agent avatar fallback with lobster emoji * style(ui): update layout styles for sidebar and shell, adjusting navigation widths for improved responsiveness * feat(ui): implement sidebar resizing functionality and enhance navigation with new search and sorting features for sessions * fix(ui): update references from ClawDash to OpenClaw in checklist and dashboard header * style(ui): adjust sidebar minimum width and add responsive behavior for narrow states * UI: minimal chat agent bar — remove sessions panel, strip chrome * style(ui): update light theme colors and add ambient gradient for Luxe Cream & Coral * UI: replace sparkle with OpenClaw lobster logo in chat * style(ui): rename theme toggle to theme select and update related styles; adjust layout and spacing for agents and chat components * style(ui): enhance agents panel layout with grid system, update toolbar styles, and refine usage chart presentation * style(ui): adjust sessions table column width and refine agent model fields layout for better responsiveness * style(ui): refine component styles for improved layout and responsiveness; adjust gradients, spacing, and element alignment across chat and agent interfaces * ui: align chat-controls session container * ui: enlarge agent controls for better touch targets * ui: pass basePath to avatar renderer in grouped chat * ui: formatting fixups from pre-commit hooks * style(ui): update layout and spacing for chat controls; enhance select component styles and improve responsiveness * UI: tighten chat header spacing and icon sizes * UI: widen chat attachment gap * style(ui): refine chat header layout and adjust icon sizes for improved visual consistency * style(ui): enhance component styles and layout; introduce new inline field styles, update overview card design, and improve session filters for better usability * style(ui): improve CSS formatting and consistency across components; adjust gradients, spacing, and layout for better readability and visual appeal * fix(ui): correct rendering of empty state in overview cards by replacing 'nothing' with an empty string
1046 lines
19 KiB
CSS
1046 lines
19 KiB
CSS
/* ===========================================
|
|
Shell Layout
|
|
=========================================== */
|
|
|
|
.shell {
|
|
--shell-pad: 12px;
|
|
--shell-gap: 12px;
|
|
--shell-nav-width: 220px;
|
|
--shell-topbar-height: 52px;
|
|
--shell-focus-duration: 200ms;
|
|
--shell-focus-ease: var(--ease-out);
|
|
height: 100vh;
|
|
display: grid;
|
|
grid-template-columns: var(--shell-nav-width) minmax(0, 1fr);
|
|
grid-template-rows: var(--shell-topbar-height) 1fr;
|
|
grid-template-areas:
|
|
"nav topbar"
|
|
"nav content";
|
|
gap: 0;
|
|
animation: dashboard-enter 0.4s var(--ease-out);
|
|
transition: grid-template-columns var(--shell-focus-duration) var(--shell-focus-ease);
|
|
overflow: hidden;
|
|
}
|
|
|
|
@supports (height: 100dvh) {
|
|
.shell {
|
|
height: 100dvh;
|
|
}
|
|
}
|
|
|
|
.shell--chat {
|
|
min-height: 100vh;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
@supports (height: 100dvh) {
|
|
.shell--chat {
|
|
height: 100dvh;
|
|
}
|
|
}
|
|
|
|
.shell--nav-collapsed {
|
|
grid-template-columns: 60px minmax(0, 1fr);
|
|
}
|
|
|
|
.shell--chat-focus {
|
|
grid-template-columns: 0px minmax(0, 1fr);
|
|
}
|
|
|
|
.shell--onboarding {
|
|
grid-template-rows: 0 1fr;
|
|
}
|
|
|
|
.shell--onboarding .topbar {
|
|
display: none;
|
|
}
|
|
|
|
.shell--onboarding .content {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.shell--chat-focus .content {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.shell--chat-focus .content > * + * {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* ===========================================
|
|
Topbar
|
|
=========================================== */
|
|
|
|
.topbar {
|
|
grid-area: topbar;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 40;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 0 16px;
|
|
height: var(--shell-topbar-height);
|
|
background: var(--topbar-bg);
|
|
backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur));
|
|
-webkit-backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur));
|
|
border-bottom: var(--topbar-border);
|
|
}
|
|
|
|
/* --- Left: Dashboard Header --- */
|
|
|
|
.dashboard-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.dashboard-header__breadcrumb {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.8rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.dashboard-header__breadcrumb-link {
|
|
color: var(--muted);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.dashboard-header__breadcrumb-link:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
.dashboard-header__breadcrumb-sep {
|
|
color: var(--muted);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.dashboard-header__breadcrumb-current {
|
|
color: var(--text);
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.dashboard-header__actions {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* --- Center: Search / Command Palette Trigger --- */
|
|
|
|
.topbar-search {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 5px 10px;
|
|
min-width: 160px;
|
|
max-width: 280px;
|
|
flex: 1;
|
|
height: 30px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-full);
|
|
background: color-mix(in srgb, var(--secondary) 60%, transparent);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-family: var(--font-body);
|
|
cursor: pointer;
|
|
transition:
|
|
border-color 180ms ease,
|
|
background 180ms ease,
|
|
box-shadow 180ms ease;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
}
|
|
|
|
.topbar-search:hover {
|
|
border-color: var(--border-strong);
|
|
background: color-mix(in srgb, var(--secondary) 85%, transparent);
|
|
}
|
|
|
|
.topbar-search:focus-visible {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px var(--accent-subtle);
|
|
}
|
|
|
|
.topbar-search__label {
|
|
flex: 1;
|
|
text-align: left;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.topbar-search__kbd {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1px 6px;
|
|
min-width: 22px;
|
|
height: 20px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: color-mix(in srgb, var(--bg) 70%, transparent);
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-family: var(--font-body);
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
pointer-events: none;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* --- Right: Status area --- */
|
|
|
|
.topbar-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.topbar-divider {
|
|
width: 1px;
|
|
height: 20px;
|
|
background: var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Connection indicator */
|
|
|
|
.topbar-connection {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 3px 8px;
|
|
border-radius: var(--radius-full);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--danger);
|
|
background: var(--danger-subtle);
|
|
transition:
|
|
color 250ms ease,
|
|
background 250ms ease;
|
|
}
|
|
|
|
.topbar-connection--ok {
|
|
color: var(--ok);
|
|
background: var(--ok-subtle);
|
|
}
|
|
|
|
.topbar-connection__dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: var(--radius-full);
|
|
background: currentColor;
|
|
box-shadow: 0 0 6px currentColor;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.topbar-connection:not(.topbar-connection--ok) .topbar-connection__dot {
|
|
animation: pulse-subtle 2s ease-in-out infinite;
|
|
}
|
|
|
|
.topbar-connection__label {
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* Redact / stream-mode toggle */
|
|
|
|
.topbar-redact {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
padding: 0;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius);
|
|
background: none;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
transition:
|
|
color 180ms ease,
|
|
background 180ms ease,
|
|
border-color 180ms ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.topbar-redact svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.topbar-redact:hover {
|
|
color: var(--text);
|
|
background: color-mix(in srgb, var(--secondary) 80%, transparent);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.topbar-redact--active {
|
|
color: var(--warn);
|
|
}
|
|
|
|
.topbar-redact--active:hover {
|
|
color: var(--warn);
|
|
background: var(--warn-subtle);
|
|
border-color: color-mix(in srgb, var(--warn) 30%, transparent);
|
|
}
|
|
|
|
/* Topbar theme select sizing */
|
|
|
|
.topbar-status .theme-select {
|
|
height: 26px;
|
|
min-width: 82px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
/* ===========================================
|
|
Navigation Sidebar
|
|
=========================================== */
|
|
|
|
.shell-nav {
|
|
grid-area: nav;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.sidebar {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
scrollbar-width: none;
|
|
background: var(--sidebar-bg);
|
|
backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur));
|
|
-webkit-backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur));
|
|
transition:
|
|
width var(--shell-focus-duration) var(--shell-focus-ease),
|
|
padding var(--shell-focus-duration) var(--shell-focus-ease),
|
|
opacity var(--shell-focus-duration) var(--shell-focus-ease);
|
|
min-height: 0;
|
|
border-right: 1px solid var(--glass-border);
|
|
}
|
|
|
|
.sidebar::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.shell--chat-focus .sidebar,
|
|
.shell--chat-focus .sidebar-resizer {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar--collapsed {
|
|
align-items: center;
|
|
}
|
|
|
|
.sidebar--collapsed .sidebar-header {
|
|
justify-content: center;
|
|
padding: 10px 8px;
|
|
min-height: 54px;
|
|
}
|
|
|
|
.sidebar--collapsed .nav-group__items {
|
|
padding: 4px 0;
|
|
align-items: center;
|
|
}
|
|
|
|
.sidebar--collapsed .nav-item {
|
|
margin: 0;
|
|
padding: 10px;
|
|
justify-content: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
}
|
|
|
|
.sidebar--collapsed .nav-item__icon {
|
|
width: 22px;
|
|
height: 22px;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.sidebar--collapsed .nav-item__icon svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
stroke-width: 1.75px;
|
|
}
|
|
|
|
.sidebar--collapsed .nav-item--active {
|
|
border-left: 0;
|
|
}
|
|
|
|
.sidebar--collapsed .nav-item--active::before {
|
|
background:
|
|
radial-gradient(
|
|
ellipse 120% 28px at 50% -2px,
|
|
color-mix(in srgb, var(--accent) 38%, transparent) 0%,
|
|
color-mix(in srgb, var(--accent) 14%, transparent) 40%,
|
|
transparent 100%
|
|
),
|
|
radial-gradient(
|
|
ellipse 60% 100% at -4px 50%,
|
|
color-mix(in srgb, var(--accent) 28%, transparent) 0%,
|
|
transparent 70%
|
|
);
|
|
}
|
|
|
|
.sidebar--collapsed .sidebar-footer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.sidebar--collapsed .sidebar-footer .nav-item {
|
|
margin: 0;
|
|
padding: 10px;
|
|
width: 44px;
|
|
height: 44px;
|
|
}
|
|
|
|
/* Sidebar resizer handle */
|
|
.sidebar-resizer {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 6px;
|
|
cursor: col-resize;
|
|
z-index: 10;
|
|
flex-shrink: 0;
|
|
/* Hit area extends beyond visible handle for easier grabbing */
|
|
margin-right: -3px;
|
|
}
|
|
|
|
.sidebar-resizer::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 2px;
|
|
top: 20%;
|
|
bottom: 20%;
|
|
width: 2px;
|
|
border-radius: 1px;
|
|
background: var(--glass-border);
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.sidebar-resizer:hover::before,
|
|
.sidebar-resizer:active::before {
|
|
background: var(--glass-border-hover);
|
|
}
|
|
|
|
/* Sidebar header (brand + collapse) */
|
|
.sidebar-header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
padding: 10px 8px;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
min-height: 54px;
|
|
}
|
|
|
|
.sidebar-brand {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
max-height: 28px;
|
|
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
|
|
@media (max-width: 1100px) {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
}
|
|
|
|
.sidebar-brand__logo {
|
|
width: 28px;
|
|
height: 28px;
|
|
flex-shrink: 0;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.sidebar-brand__title {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1.1;
|
|
color: var(--text-strong);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
min-width: 0;
|
|
}
|
|
|
|
.sidebar-collapse-btn {
|
|
flex: 0 0 32px;
|
|
width: 32px;
|
|
height: 32px;
|
|
|
|
@media (max-width: 1100px) {
|
|
flex: 0 0 28px;
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg);
|
|
border: var(--border) 1px solid transparent;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
color: var(--muted);
|
|
flex-shrink: 0;
|
|
transition:
|
|
background var(--duration-fast) ease,
|
|
border-color var(--duration-fast) ease,
|
|
color var(--duration-fast) ease;
|
|
}
|
|
|
|
.sidebar--collapsed .sidebar-collapse-btn {
|
|
flex: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.sidebar-collapse-btn:hover {
|
|
background: var(--bg);
|
|
border-color: var(--border);
|
|
color: var(--text);
|
|
}
|
|
|
|
.sidebar-collapse-btn svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
stroke-width: 1.5px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
/* Sidebar nav section */
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: 4px 8px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.sidebar-nav::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
/* Nav groups */
|
|
.nav-group {
|
|
margin-bottom: 16px;
|
|
display: grid;
|
|
gap: 2px;
|
|
}
|
|
|
|
.nav-group:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.nav-group__items {
|
|
display: grid;
|
|
gap: 1px;
|
|
}
|
|
|
|
.nav-group--collapsed .nav-group__items {
|
|
display: none;
|
|
}
|
|
|
|
/* Nav group label */
|
|
.nav-group__label {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
margin-bottom: 4px;
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
border-radius: var(--radius-sm);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
transition:
|
|
color var(--duration-fast) ease,
|
|
background var(--duration-fast) ease;
|
|
}
|
|
|
|
.nav-group__label:hover {
|
|
color: var(--text);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.nav-group__label-text {
|
|
flex: 1;
|
|
}
|
|
|
|
.nav-group__chevron {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 12px;
|
|
height: 12px;
|
|
opacity: 0.5;
|
|
transition: transform var(--duration-fast) ease;
|
|
}
|
|
|
|
.nav-group__chevron svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
stroke-width: 2px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
/* Nav items */
|
|
.nav-item {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 10px;
|
|
padding: 9px 12px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid transparent;
|
|
background: transparent;
|
|
overflow: hidden;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition:
|
|
border-color var(--duration-fast) ease,
|
|
background var(--duration-fast) ease,
|
|
color var(--duration-fast) ease,
|
|
box-shadow var(--duration-fast) ease;
|
|
}
|
|
|
|
.nav-item__icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
opacity: 0.7;
|
|
transition: opacity var(--duration-fast) ease;
|
|
}
|
|
|
|
.nav-item__icon svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
stroke-width: 1.5px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.nav-item__text {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nav-item__external-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: auto;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.nav-item__external-icon svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
stroke-width: 1.5px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
color: var(--text);
|
|
background: color-mix(in srgb, var(--secondary) 90%, transparent);
|
|
border-color: color-mix(in srgb, var(--border) 75%, transparent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.nav-item:hover .nav-item__icon {
|
|
opacity: 1;
|
|
}
|
|
|
|
.nav-item--active {
|
|
color: var(--text-strong);
|
|
background: color-mix(in srgb, var(--accent-subtle) 70%, var(--secondary));
|
|
border-color: color-mix(in srgb, var(--accent) 34%, transparent);
|
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
|
|
}
|
|
|
|
.nav-item--active::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: inherit;
|
|
background: radial-gradient(
|
|
ellipse 28px 120% at -2px 50%,
|
|
color-mix(in srgb, var(--accent) 38%, transparent) 0%,
|
|
color-mix(in srgb, var(--accent) 14%, transparent) 40%,
|
|
transparent 100%
|
|
);
|
|
opacity: 0;
|
|
animation: nav-glow-in 0.4s ease-out 0.05s forwards;
|
|
pointer-events: none;
|
|
}
|
|
|
|
@keyframes nav-glow-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-6px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
.nav-item--active .nav-item__icon {
|
|
opacity: 1;
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* Sidebar footer — aligned with chat compose bar */
|
|
.sidebar-footer {
|
|
padding: 14px 8px 6px;
|
|
border-top: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.sidebar-footer__docs-block {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.sidebar-version {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
padding: 2px 12px 6px;
|
|
}
|
|
|
|
.sidebar-version__text {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--muted);
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.sidebar-version__dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--muted);
|
|
opacity: 0.4;
|
|
}
|
|
|
|
/* ===========================================
|
|
Content Area
|
|
=========================================== */
|
|
|
|
.content {
|
|
grid-area: content;
|
|
padding: 12px 14px 24px;
|
|
display: block;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.content > * + * {
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.content--chat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
overflow: hidden;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.content--chat > * + * {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* Content header */
|
|
.content-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
height: 36px;
|
|
min-height: 36px;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
transform-origin: top center;
|
|
transition:
|
|
opacity var(--shell-focus-duration) var(--shell-focus-ease),
|
|
transform var(--shell-focus-duration) var(--shell-focus-ease),
|
|
max-height var(--shell-focus-duration) var(--shell-focus-ease),
|
|
padding var(--shell-focus-duration) var(--shell-focus-ease);
|
|
max-height: 36px;
|
|
}
|
|
|
|
.shell--chat-focus .content-header {
|
|
opacity: 0;
|
|
transform: translateY(-8px);
|
|
max-height: 0;
|
|
padding: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1.25;
|
|
color: var(--text-strong);
|
|
}
|
|
|
|
.page-sub {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
margin-top: 1px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.page-meta {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Chat view header adjustments */
|
|
.content--chat .content-header {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
|
|
.content--chat .content-header > div:first-child {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
text-align: left;
|
|
}
|
|
|
|
.content--chat .page-meta {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.content--chat .chat-controls {
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
align-content: center;
|
|
}
|
|
|
|
/* Chat controls in header — uniform 32px height across all controls */
|
|
.content-header .btn--icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 32px;
|
|
height: 32px;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.content-header .btn--icon svg {
|
|
display: block;
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.content-header .chat-controls__session {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.content-header .chat-controls__session select {
|
|
height: 32px;
|
|
line-height: 1;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.02em;
|
|
padding: 0 28px 0 10px;
|
|
background-position: right 8px center;
|
|
border-radius: var(--radius-md);
|
|
max-width: 300px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.content-header .chat-controls__separator {
|
|
width: 1px;
|
|
height: 32px;
|
|
background: var(--border);
|
|
font-size: 0;
|
|
color: transparent;
|
|
overflow: hidden;
|
|
align-self: center;
|
|
flex-shrink: 0;
|
|
margin: 0 4px;
|
|
}
|
|
|
|
.content-header .chat-controls__thinking {
|
|
height: 32px;
|
|
min-height: 32px;
|
|
align-items: center;
|
|
padding: 0 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* ===========================================
|
|
Grid Utilities
|
|
=========================================== */
|
|
|
|
.grid {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.grid-cols-2 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.grid-cols-3 {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.stat-grid {
|
|
display: grid;
|
|
gap: 10px;
|
|
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
|
|
}
|
|
|
|
.note-grid {
|
|
display: grid;
|
|
gap: 12px;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.stack {
|
|
display: grid;
|
|
gap: 10px;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
/* ===========================================
|
|
Responsive - Tablet
|
|
=========================================== */
|
|
|
|
@media (max-width: 1100px) {
|
|
.shell {
|
|
--shell-pad: 10px;
|
|
--shell-gap: 10px;
|
|
--shell-nav-width: 200px;
|
|
}
|
|
|
|
.topbar {
|
|
padding: 10px 12px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.topbar-search__kbd {
|
|
display: none;
|
|
}
|
|
|
|
.topbar-status {
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.content-header {
|
|
height: 36px;
|
|
min-height: 36px;
|
|
max-height: 36px;
|
|
padding: 0;
|
|
}
|
|
|
|
.page-sub {
|
|
display: none;
|
|
}
|
|
|
|
.content {
|
|
padding: 10px 12px 20px;
|
|
}
|
|
|
|
.content > * + * {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.grid-cols-2,
|
|
.grid-cols-3 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.table-head,
|
|
.table-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.list-item {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|