Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

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

Williaward79f975d0b39
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index 299506c30..f7b93e104 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -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
);