fix(web): align chat row icons and standardize interaction surfaces

This commit is contained in:
2026-10-21 01:33:33 +01:00
parent 2c1d5ccd47
commit 4ab49a2749
4 changed files with 125 additions and 37 deletions
+17 -20
View File
@@ -166,7 +166,7 @@
--chat-row-control: 44px;
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr) 22px var(--chat-row-control);
grid-template-columns: minmax(0, 1fr) var(--chat-row-control);
gap: 8px;
align-items: start;
cursor: pointer;
@@ -189,18 +189,21 @@
text-align: left;
cursor: pointer;
}
.chat-session-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* The inner session button must never take the generic button hover fill: on a
selected row it read as a darker rectangle inside the row's own padding. */
.chat-session-button:hover { background: none; }
/* The row, not an inner rectangle, owns session hover/press/focus feedback. */
.chat-row .chat-session-button:is(:hover, :active, :focus-visible) { background: transparent; outline: none; }
.chat-row:not(.selected):not(:hover):has(.chat-session-button:active) { background: var(--color-elevated-2); }
.chat-row:has(.chat-session-button:focus-visible) {
outline: var(--focus-ring-width) solid var(--focus-ring-color);
outline-offset: var(--focus-ring-offset);
}
.chat-row .row-head {
grid-column: 1;
display: flex;
gap: 8px;
align-items: center;
flex-wrap: wrap;
flex-wrap: nowrap;
}
.chat-row .row-title { min-width: 0; }
.chat-row .row-title { flex: 1 1 auto; min-width: 0; }
.chat-row .row-meta { grid-column: 1; }
.chat-row .chat-row-meta {
overflow: hidden;
@@ -211,9 +214,13 @@
/* Visible, dedicated trailing controls: no invisible hit targets, hover reveal,
or overlays on the title, path, model or backend activity mark. */
.chat-row-actions {
grid-column: 3;
grid-column: 2;
grid-row: 1;
display: grid;
align-self: stretch;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: calc(2 * var(--chat-row-control) + 2px);
gap: 2px;
}
@@ -230,14 +237,10 @@
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-control);
background: var(--color-surface);
color: var(--muted);
font-size: 18px;
line-height: 1;
}
.chat-star:hover { color: var(--color-text); }
.chat-star.starred { color: var(--color-accent); }
button.chat-star.starred { color: var(--color-accent); }
.chat-row .chat-menu-button {
width: var(--chat-row-control);
height: var(--chat-row-control);
@@ -247,15 +250,12 @@
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--color-surface);
border-radius: var(--radius-control);
font-size: 18px;
line-height: 1;
}
/* Viewport-anchored on explicit click so the list scroller cannot clip items. */
.chat-row .chat-menu-panel { position: fixed; top: auto; bottom: auto; right: auto; }
.chat-menu-wrap { position: relative; }
.chat-row-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.chat-menu-button { min-width: 30px; font-size: 15px; line-height: 1; }
.chat-menu-panel {
position: absolute;
@@ -1188,9 +1188,6 @@
.chat-create-backend { padding: 6px 12px; border: 1px solid var(--border); color: var(--muted); }
.chat-create-backend.selected { border-color: var(--accent); background: var(--tint-selected); color: var(--text); }
.chat-backend-logo {
grid-column: 2;
grid-row: 1;
margin-top: 12px;
display: inline-flex;
align-items: center;
justify-content: center;