fix(ui): readable selection colours, unified agent control sizing and Home width (#2064)

Closes #1985

The SQL console and GraphQL editors draw transparent text over their highlighting, so a selection showed only an empty highlight; they now get selection colours from the tokens, so selected text stays readable in light and dark themes. Agent action buttons share one size, and the Home composer uses the same width token as the conversation composer. Verified on macOS in light and dark themes.

Co-authored-by: panda-student <71381346+panda-student@users.noreply.github.com>
This commit is contained in:
SunZhiQiang
2026-11-08 05:34:28 +08:00
committed by GitHub
parent 1e78c4c877
commit d5af4d1554
5 changed files with 14 additions and 18 deletions
@@ -1237,6 +1237,12 @@
color: transparent !important;
caret-color: var(--fg-strong);
}
/* The input's own glyphs are transparent so the highlight layer below paints them; without
this the selection would be an empty highlight. */
.sqlInputText::selection {
background: var(--bg-editor-selection);
color: var(--fg-strong);
}
.sqlHighlight {
position: absolute;
inset: 0;