web: one chat activity line, clearer groups and paste attachments
Replace the reasoning, tool and bottom thinking rows with one stable activity line and refresh Stop on the step frame. Make directory and Closed bands share an elevated square surface, centred text and a collapse toggle. Read pasted files into the composer attachment path and show sent files in user bubbles.
This commit is contained in:
+120
-18
@@ -12,7 +12,34 @@
|
||||
open, mirroring `.list.runs`' filter-menu treatment. */
|
||||
.chat-list.menu-open { overflow: visible; }
|
||||
.chat-search { flex: 1 1 auto; min-width: 0; }
|
||||
.chat-toolbar .chat-new { white-space: nowrap; }
|
||||
.chat-toolbar {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
.chat-toolbar .chat-search { min-height: 38px; }
|
||||
.chat-new {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 7px;
|
||||
flex: none;
|
||||
min-height: 38px;
|
||||
padding: 0 13px;
|
||||
border: 1px solid var(--color-accent);
|
||||
background: var(--color-accent);
|
||||
color: var(--color-on-accent);
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.chat-new:hover,
|
||||
.chat-new:focus-visible {
|
||||
background: var(--color-accent-strong);
|
||||
border-color: var(--color-accent-strong);
|
||||
color: var(--color-on-accent);
|
||||
}
|
||||
.chat-new-glyph { font-size: 18px; line-height: 1; font-weight: 500; }
|
||||
.chat-new-label { font-size: 13px; }
|
||||
|
||||
/* C2: the create pane — the directory picker, the model note and the footer that
|
||||
names the value chat_create will send. */
|
||||
@@ -68,33 +95,57 @@
|
||||
.chat-create-cancel:disabled { opacity: 0.55; }
|
||||
.chat-create-spinner { width: 14px; height: 14px; border-width: 2px; }
|
||||
|
||||
.chat-group-header {
|
||||
padding: 8px 12px 4px;
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
}
|
||||
/* The CLOSED group's own expand/collapse control; the chevron sits at its end. */
|
||||
/* A directory or Closed section is a full-width band, not a small label over
|
||||
the rows: a distinct surface, centred text and (for both) one expand toggle.
|
||||
The band is square so it reads as a divider rather than a floating chip. */
|
||||
.chat-group-header,
|
||||
.chat-group-toggle {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding: 8px 12px 4px;
|
||||
min-height: 34px;
|
||||
margin: 0;
|
||||
padding: 8px 42px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
border-top: 1px solid var(--border);
|
||||
border-radius: 0;
|
||||
background: var(--color-elevated);
|
||||
color: var(--muted);
|
||||
font: inherit;
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.04em;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
.chat-group-toggle { cursor: pointer; }
|
||||
.chat-group-toggle:hover { background: var(--color-elevated-2); color: var(--color-text); }
|
||||
.chat-group-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
||||
.chat-group-title {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.chat-group-directory .chat-group-title {
|
||||
color: var(--color-text);
|
||||
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
||||
font-size: 11.5px;
|
||||
letter-spacing: 0;
|
||||
text-transform: none;
|
||||
}
|
||||
.chat-group-starred .chat-group-title { color: var(--accent); }
|
||||
.chat-group-toggle .chevron {
|
||||
position: absolute;
|
||||
right: 14px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
text-transform: none;
|
||||
}
|
||||
.chat-group-toggle:hover { color: var(--color-text); }
|
||||
.chat-group-toggle .chevron { font-size: 12px; text-transform: none; }
|
||||
|
||||
.chat-row {
|
||||
position: relative;
|
||||
display: grid;
|
||||
@@ -137,6 +188,11 @@
|
||||
}
|
||||
.chat-row .row-title { min-width: 0; }
|
||||
.chat-row .row-meta { grid-column: 1; }
|
||||
.chat-row .chat-row-meta {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.chat-row-model { font-size: 11px; }
|
||||
/* Star (top-right) and the more menu (bottom-right) sit over the row's own
|
||||
corners on hover/focus, so they never become an extra row or reserve width. */
|
||||
@@ -323,6 +379,26 @@
|
||||
}
|
||||
.chat-client { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
|
||||
.chat-user-text { white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.chat-user-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
|
||||
.chat-user-file {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
padding: 4px 8px;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
|
||||
border-radius: var(--radius-control);
|
||||
background: color-mix(in srgb, var(--accent) 8%, transparent);
|
||||
font-size: 12px;
|
||||
}
|
||||
.chat-user-file-glyph { flex: none; font-size: 13px; line-height: 1; }
|
||||
.chat-user-file-name {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.chat-turn-agent { flex-direction: column; align-items: flex-start; }
|
||||
/* The tool summary is a quiet line next to the message, not a chip inside it. */
|
||||
.chat-tools { margin: 2px 0 10px; }
|
||||
@@ -343,10 +419,29 @@
|
||||
padding: 0 2px;
|
||||
border-bottom: 0;
|
||||
}
|
||||
.chat-activity-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
min-height: 22px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.chat-activity-spinner { width: 12px; height: 12px; border-width: 2px; flex: none; }
|
||||
.chat-activity-phase,
|
||||
.chat-activity-elapsed {
|
||||
color: var(--muted);
|
||||
font-size: 11.5px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.chat-activity-elapsed { flex: none; }
|
||||
.chat-activity-sep { color: var(--muted); flex: none; }
|
||||
.chat-activity-head > .chat-tool-chip { min-width: 0; overflow: hidden; }
|
||||
.chat-reasoning-toggle {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
flex: none;
|
||||
padding: 2px 0;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
@@ -923,6 +1018,13 @@
|
||||
|
||||
/* ---- Phone comfort ------------------------------------------------------ */
|
||||
@media (max-width: 599px) {
|
||||
.chat-toolbar { padding: 10px 12px; }
|
||||
.chat-toolbar .chat-search { min-height: 44px; font-size: 15px; }
|
||||
.chat-new { min-height: 44px; padding: 0 14px; }
|
||||
.chat-new-label { font-size: 14px; }
|
||||
.chat-group-header,
|
||||
.chat-group-toggle { min-height: 40px; padding: 10px 42px; font-size: 12px; }
|
||||
.chat-group-directory .chat-group-title { font-size: 12px; }
|
||||
.chat-row { min-height: 96px; }
|
||||
.chat-row .row-head { padding-right: 50px; }
|
||||
.chat-star {
|
||||
|
||||
Reference in New Issue
Block a user