Keep composer lower chrome opaque while the terminal drawer is open

The translucent lower chrome lets the composer shadow taper into the message
canvas, but over the terminal drawer it rendered as a dirty light-to-black
gradient. Tag the chrome with data-terminal-open and switch it to the opaque
workspace background so the drawer border defines the boundary instead.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Fable 5 committed 2026-07-22 14:37:36 +02:00
1 parent a419786679
commit fbaf6b71dc
2 files changed
+13

No files matched your search

+1
View File
@@ -5446,6 +5446,7 @@ function ChatViewContent(props: ChatViewProps) {
)}
>
<div
data-terminal-open={terminalUiState.terminalOpen ? "true" : undefined}
className={cn(
"chat-composer-lower-chrome relative z-10",
isGitRepo
+12
View File
@@ -324,6 +324,14 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
background: color-mix(in srgb, var(--background) 20%, transparent);
}
/* The translucent lower chrome lets the composer's shadow taper naturally
into the message canvas. Above the terminal drawer that same shadow reads
as a dirty light-to-black gradient, so end the workspace on an opaque
surface and let the drawer's border define the boundary instead. */
.chat-composer-lower-chrome[data-terminal-open="true"] {
background: var(--background);
}
.chat-composer-glass {
box-shadow:
0 18px 48px -20px rgb(0 0 0 / 28%),
@@ -343,6 +351,10 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
background: color-mix(in srgb, var(--background) 45%, transparent);
}
.dark .chat-composer-lower-chrome[data-terminal-open="true"] {
background: var(--background);
}
.dark .chat-composer-glass {
box-shadow:
0 18px 48px -20px rgb(0 0 0 / 60%),