fix(web): keep the composer glass aligned with the context strip at any interface font size (#5703)

Co-authored-by: Claude Fable 5 <[email protected]>
This commit is contained in:
WilliawarandClaude Fable 5 authored and GitHub committed 2026-08-15 12:02:41 +00:00
1 parent b0de385777
commit d79f975d0b
1 file changed
+17 -13
+17 -13
View File
@@ -716,27 +716,31 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
.chat-composer-glass-shell-with-context::before {
border-radius: 0;
/*
* One continuous glass layer: a 22px composer joined to a 16px strip,
* whose visible sides align with the composer's bottom tangents.
* One continuous glass layer: a 22px composer joined to a 16px strip. The
* strip is inset 1.375rem per side, so the step-in positions and their
* curve controls stay in rem to keep tracking it at non-default interface
* font sizes; the composer's 22px top radius and the strip's 16px bottom
* radius are px by design.
*/
clip-path: shape(
from 0 22px,
curve to 22px 0 with 0 9.85px / 9.85px 0,
line to calc(100% - 22px) 0,
curve to 100% 22px with calc(100% - 9.85px) 0 / 100% 9.85px,
line to 100% calc(100% - var(--chat-composer-context-extension) - 22px),
curve to calc(100% - 22px) calc(100% - var(--chat-composer-context-extension)) with 100%
calc(100% - var(--chat-composer-context-extension) - 9.85px) / calc(100% - 9.85px)
line to 100% calc(100% - var(--chat-composer-context-extension) - 1.375rem),
curve to calc(100% - 1.375rem) calc(100% - var(--chat-composer-context-extension)) with 100%
calc(100% - var(--chat-composer-context-extension) - 0.6156rem) / calc(100% - 0.6156rem)
calc(100% - var(--chat-composer-context-extension)),
line to calc(100% - 22px) calc(100% - 16px),
curve to calc(100% - 38px) 100% with calc(100% - 22px) calc(100% - 7.16px) /
calc(100% - 29.16px) 100%,
line to 38px 100%,
curve to 22px calc(100% - 16px) with 29.16px 100% / 22px calc(100% - 7.16px),
line to 22px calc(100% - var(--chat-composer-context-extension)),
curve to 0 calc(100% - var(--chat-composer-context-extension) - 22px) with 9.85px
line to calc(100% - 1.375rem) calc(100% - 16px),
curve to calc(100% - 1.375rem - 16px) 100% with calc(100% - 1.375rem) calc(100% - 7.16px) /
calc(100% - 1.375rem - 7.16px) 100%,
line to calc(1.375rem + 16px) 100%,
curve to 1.375rem calc(100% - 16px) with calc(1.375rem + 7.16px) 100% / 1.375rem
calc(100% - 7.16px),
line to 1.375rem calc(100% - var(--chat-composer-context-extension)),
curve to 0 calc(100% - var(--chat-composer-context-extension) - 1.375rem) with 0.6156rem
calc(100% - var(--chat-composer-context-extension)) / 0
calc(100% - var(--chat-composer-context-extension) - 9.85px),
calc(100% - var(--chat-composer-context-extension) - 0.6156rem),
line to 0 22px,
close
);