Skip to content

Commit d316c76

Browse files
t3dotggclaude
andcommitted
fix(web): tint composer lower chrome from background, not card
The lower chrome strip (branch toolbar row) painted a translucent wash of --card over the main view. In dark mode --card is the background lightened 2% toward white, so the strip rendered ~1% lighter than the surface around it — a subtle full-width gray bar above the bottom edge, visible even on prod, most noticeable when no timeline content is scrolled underneath. Mixing from --background instead makes the tint invisible against the main view while the backdrop blur still carries the frosted effect when content scrolls under it. The composer glass keeps its card tint — it reads as a card and is bounded by a border. Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent baa34bb commit d316c76

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

‎apps/web/src/index.css‎

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,18 @@
186186
padding-inline-end: calc(env(safe-area-inset-right) + 0.75rem);
187187
}
188188

189-
.chat-composer-glass,
190-
.chat-composer-lower-chrome {
189+
.chat-composer-glass {
191190
background: color-mix(in srgb, var(--card) 20%, transparent);
192191
}
193192

193+
/* Mix from --background (not --card): the lower chrome is a full-width
194+
strip over the main view, and a card-tinted wash reads as a lighter
195+
seam against it when no content is scrolled underneath. The backdrop
196+
blur, not the tint, carries the frosted effect. */
197+
.chat-composer-lower-chrome {
198+
background: color-mix(in srgb, var(--background) 20%, transparent);
199+
}
200+
194201
.chat-composer-glass {
195202
box-shadow:
196203
0 18px 48px -20px rgb(0 0 0 / 28%),
@@ -202,11 +209,14 @@
202209
backdrop-filter: blur(16px);
203210
}
204211

205-
.dark .chat-composer-glass,
206-
.dark .chat-composer-lower-chrome {
212+
.dark .chat-composer-glass {
207213
background: color-mix(in srgb, var(--card) 45%, transparent);
208214
}
209215

216+
.dark .chat-composer-lower-chrome {
217+
background: color-mix(in srgb, var(--background) 45%, transparent);
218+
}
219+
210220
.dark .chat-composer-glass {
211221
box-shadow:
212222
0 18px 48px -20px rgb(0 0 0 / 60%),
@@ -227,10 +237,13 @@
227237
}
228238

229239
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
230-
.chat-composer-glass,
231-
.chat-composer-lower-chrome {
240+
.chat-composer-glass {
232241
background: var(--card);
233242
}
243+
244+
.chat-composer-lower-chrome {
245+
background: var(--background);
246+
}
234247
}
235248
}
236249

0 commit comments

Comments
 (0)