Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): address composer banner review follow-ups #8850

Mergedjuliusmarmingemerged 5 commits intomain fromrefs/pull/8850/headmerged by juliusmarminge View on GitHub

Showing 10 changed files with 44 additions and 15 deletions (loading 7).

x
0 of 10 viewed, 10 left
4 additions and 5 deletionsapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -228,10 +228,9 @@
const rect = (mainSurface ?? form ?? anchor).getBoundingClientRect();
const rootFontSizePx =
Number.parseFloat(window.getComputedStyle(document.documentElement).fontSize) || 16;
- const drawerInsetRem =
- Number.parseFloat(
- window.getComputedStyle(form ?? anchor).getPropertyValue("--chat-composer-drawer-inset"),
- ) || 1.375;
+ const drawerInsetRem = Number.parseFloat(
+ window.getComputedStyle(form ?? anchor).getPropertyValue("--chat-composer-drawer-inset"),
+ );
const drawerInset = drawerInsetRem * rootFontSizePx;
// One extra pixel prevents fractional layout coordinates from exposing
// the canvas between the drawer mask and the composer's foreground edge.
@@ -2899,7 +2898,7 @@
: null;
const bannerStackItems = activityStackItem
- ? [...props.bannerItems, activityStackItem]
+ ? [activityStackItem, ...props.bannerItems]
: props.bannerItems;
useEffect(() => {
if (activeTasksProgress === null || activeTaskSteps === null) {
6 additions and 2 deletionsapps/web/src/components/chat/ComposerBanner.tsxModified
View file
@@ -105,7 +105,7 @@
<div