Skip to content

The agent that grows with you

fix(desktop): register --sticky-prompt-clip as a non-inherited length

Inv Dudeb8229d3b8da2
diff --git a/apps/desktop/src/styles.css b/apps/desktop/src/styles.css
index ddd314477d1..f790bc1cb25 100644
--- a/apps/desktop/src/styles.css
+++ b/apps/desktop/src/styles.css
@@ -1906,6 +1906,14 @@ body.guest-pointer-lock :is(webview, iframe) {
top: var(--sticky-human-offset);
}
+/* useStickyPromptClip writes this value on each frame during a scroll. It is
+ not inherited. A write recalculates the style of only this element. */
+@property --sticky-prompt-clip {
+ syntax: '<length>';
+ inherits: false;
+ initial-value: 0px;
+}
+
/* The sticky prompt owns no field paint. Clip only the scrolling siblings
behind it, including the top gap, so bubble transparency still works. */
[data-sticky-prompt-clip] {